Ninjadoodle Posted June 26, 2014 Share Posted June 26, 2014 Hi guys Is there a way to tween the rotation of a sprite? The only properties I can tween are position and scale. Thank you in advance! PS. I'm starting to feel bad for posting questions. There doesn't seem to be too many people on this board. I really LOVE this engine and I'm doing my best to learn all the ins and outs with the yet limited documentation. Quote Link to comment Share on other sites More sharing options...
enpu Posted June 26, 2014 Share Posted June 26, 2014 Sure.var sprite = new game.Sprite('sprite.png');game.scene.addTween(sprite, { rotation: 0.2}, 2000).start(); Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted June 26, 2014 Author Share Posted June 26, 2014 Thanks heaps! I was using different syntax and it did't seem to accept rotation Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.