PDA

View Full Version : Need some help in mowing and rotating a movie clip.



White-wizard
January 9th, 2008, 05:52 AM
Hi. I'm making a game with 2.0 actionscript and I use Flash CS3.
I know the basic idea how to move movie clip but I want it so that when I press Left key, the movie clip rotates to left and same thing when pressing right.
And how you can make the movie clip go to that direction where the movie clip is pointing at the time?

-Z-
January 9th, 2008, 07:55 AM
Have it so when you press left, it rotates the movie clip to the left, and then goes left... unless you are talking about gta style moving, where you can go in any angle 0-360, in that case, you will need to learn some geometry/trig.... COS , TAN, etc