Nobody Home Posted October 19, 2016 Share Posted October 19, 2016 I have an image which faces upwards. In my create() event, when I load it into a player sprite the image still points upwards but the player's rotation is at 0, i.e. pointing right. So there's a difference of 90 degrees between the sprite and the image. In my create event, what's the best way to sync-up the player rotation and the image rotation so that the sprite faces up the screen too? Thanks for advice - phaser noob but really enjoying it. Link to comment Share on other sites More sharing options...
squilibob Posted October 21, 2016 Share Posted October 21, 2016 If setting the player.angle = 90 isn't giving you the desired result then you can add the player sprite by itself to a group after setting its angle. You can then apply rotations to that group. Link to comment Share on other sites More sharing options...
Nobody Home Posted October 24, 2016 Author Share Posted October 24, 2016 Thank you squilibob, I'll give that a try. Link to comment Share on other sites More sharing options...
Recommended Posts