An example of an object being gravitated towards the mouse. In the project file, there are two variables that can be set: gravitation and friction. Gravitation is the force with which the sprite is drawn towards the mouse (larger numbers mean smaller pull). Friction is the amount of force the sprite will retain through time (1.00 means no friction like in space; 0.00 means complete friction the object will be unable to move).
Comments
You need to be logged in to post comments
Add a Comment
cool :)
(view all replies)Comment Reply