drdoc Posted September 22, 2014 Share Posted September 22, 2014 Hello guys! I'm trying to create a game with phaser.I have group of sprites hammers. I want loop rotation this sprites, if angle < 45, I want it to rotate to the left. When angle >45, I want it to rotate to the right. Imagine swinging a hammer. Please help me with my problem. Link to comment Share on other sites More sharing options...
lewster32 Posted September 22, 2014 Share Posted September 22, 2014 I think you'll need to be a bit more specific as I'm not entirely sure what you mean - surely if the sprite is at an angle it's already been rotated? Link to comment Share on other sites More sharing options...
Recommended Posts