mario_hater
February 16th, 2007, 04:51 PM
i have some simple enemys in my game that have two variables, an xspeed and a yspeed. Is there any way to get a rotation for the enemy from those values. Something like this: _rotation=Math.tan(yspeed/xspeed)