Jump to content

Matching sprite rotation to image rotation

Nobody Home

Recommended Posts


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


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...