Interactivity & Control: Movement Around Screen

0 Comments
I have figured out how to create the movement of objects around the screen, depending on where the mouse is. To do this, the program required a detector to detect where the mouse is and the distance of the mouse in relation to where the specified object is. This would affect the direction of the movement of the object.

This was done by creating variables and if the variable was equal to 1 in relation to the distance of the mouse about the specified object, then a particular action would occur. If the variable was equal to -1, then the opposite action would occur.





You may also like

No comments:

Powered by Blogger.