This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-08-14 10:11:22

mainiacjoe
Scratcher
Registered: 2010-04-11
Posts: 8

Smooth Mouse-following Script

I've uploaded a project demonstrating a new mouse-following script I've developed.  This script automatically adjusts for the speed of the sprite based on the distance to the mouse pointer with smooth acceleration and deceleration.  It also eliminates the jitter that you can get from frequent changes in sprite direction when the sprite is on resting on the mouse pointer.  All this with just two variables and 5 lines of code!

http://scratch.mit.edu/projects/mainiacjoe/1245342

Offline

 

Board footer