Page 1 of 1

actor rotation

PostPosted: Fri Apr 18, 2008 8:29 pm
by BloodRedDragon
can you rotate an actor so that all its scripts would be for the way that it is facing (eg if you wanted an actor to move up when you press up arrow, then when you press right arrow it rotates by about 10 degrees, then after this if you press up it would go up but a slight bit to the right?)

Re: actor rotation

PostPosted: Fri Apr 18, 2008 8:45 pm
by Caaz Games
...i think so ask fuzzy he probably knows... oooooo fuzzy!!!

Re: actor rotation

PostPosted: Fri Apr 18, 2008 9:51 pm
by makslane
Just change the angle and directional_velocity variables.

Re: actor rotation

PostPosted: Sat Apr 19, 2008 12:23 am
by Freddy
To do this, you must have all the animations required. For example, if you had an actor, and you pressed the right arrow key like you said, you would need an animation for the actor to rotate.

Re: actor rotation

PostPosted: Fri Apr 25, 2008 5:38 pm
by BloodRedDragon
Cheers that works.