Ninjadoodle Posted June 26, 2014 Share Posted June 26, 2014 I'm trying to tween the rotation of my sprite and this is the code I'm using ... tween = new game.Tween(sprite);tween.to({rotation: 2}, 1000);tween.start(); From what I understand, this should spin the sprite 2 times over 1 second, but when I run the code, it spins the sprite just over 90 degrees. Tweening position and scale seems to work fine, but this one is giving me problems Any ideas? Thank you in advance! Quote Link to comment Share on other sites More sharing options...
enpu Posted June 26, 2014 Share Posted June 26, 2014 Rotation is in radians. tween.to({ rotation: Math.PI * 2 }, 1000); http://stackoverflow.com/questions/135909/what-is-the-method-for-converting-radians-to-degrees Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted June 26, 2014 Author Share Posted June 26, 2014 I feel stupid haha Thanks heaps! 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.