kozy Posted May 13, 2015 Share Posted May 13, 2015 Is it possible to change the default 0 point of a sprite's rotation? So when a sprite rotates to say 135*, 135* becomes the new 0 point? Help is greatly appreciated! Link to comment Share on other sites More sharing options...
xaviserrag Posted May 13, 2015 Share Posted May 13, 2015 I think that there is no way to do this, but a way to simulate the effect is that where you change the rotation always do the currentRotation + the rotation that you want to apply.sprite.rotation = sprite.rotation + 135; Link to comment Share on other sites More sharing options...
kozy Posted May 14, 2015 Author Share Posted May 14, 2015 I started a topic in both phaser and pixi forums.. won't do that again!http://www.html5gamedevs.com/topic/14489-change-zero-point-of-sprite-rotation/#entry82422 Link to comment Share on other sites More sharing options...
kozy Posted June 14, 2015 Author Share Posted June 14, 2015 Solved here! http://www.html5gamedevs.com/topic/14489-change-zero-point-of-sprite-rotation/ Link to comment Share on other sites More sharing options...
Recommended Posts