snake_404 Posted May 15, 2015 Share Posted May 15, 2015 Hi, is possible to know the rotation direction of the sprites?I have a static sprite and when i click in that sprite i can rotate the sprite in left or right direction but i want to know if is possible to save the direction in a variable.Thanks a lot for your help. Link to comment Share on other sites More sharing options...
Yanifska Posted May 19, 2015 Share Posted May 19, 2015 I think you can do something likevar myRotation = mySprite.angle; var myRotation = mySprite.rotation; Link to comment Share on other sites More sharing options...
drhayes Posted May 19, 2015 Share Posted May 19, 2015 If you need to save the direction you could make a variable on the sprite that tracks it, so "sprite.rotationDirection = -1;" for counter-clockwise, etc. Link to comment Share on other sites More sharing options...
Recommended Posts