Search tutorials
The next 2 lines take those distances we just worked out, and turn them into fractions of their former selves, because we dont want the movie clip moving quite so fast. We only want it to move about 5 pixels per second as a maximum. Dividing it by 20 is a fair speed, although you can mess with this if you like.
The last lines just add the movement speed variables onto the movie clips position, so it moves. Otherwise it doesnt move. It also adds the myDegrees rotation variable we spent precious keystrokes gathering and makes the movie clip rotate to match the position of the mouse. Enjoy! If anyone has any expansions or ideas for this feel free to email me hithere54@hotmail.com
The last lines just add the movement speed variables onto the movie clips position, so it moves. Otherwise it doesnt move. It also adds the myDegrees rotation variable we spent precious keystrokes gathering and makes the movie clip rotate to match the position of the mouse. Enjoy! If anyone has any expansions or ideas for this feel free to email me hithere54@hotmail.com
| » Level Advanced |
|
Added: 2003-12-04 Rating: 8 Votes: 88 |
| » Author |
| Multimedia designer and Flash groupie. |
| » Download |
| Download the files used in this tutorial. |
| Download (10 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!