Jump to content

Sprites rotated incorrectly in spritesheet. Fix in Phaser?


Llaw
 Share

Recommended Posts

I've got a sprite sheet where all my top-down character frames are facing upwards (to the North), which means that their rotation will be skewed 90 degrees in Phaser, since by default the sprite should be facing to the East when the object's rotation property has the valeu 0 in the code.

My question is: is there a way to rotate all frames on-load, so they are facing the correct way so I don't have to offset all my calculations? Or is there some other way to fix this problem? I really don't want to manually rotate every frame in my sprite sheet just to make this work. 

Currently I am subtracting 90 degrees in every calculation to get things to work the way I want it to, and it leaves a sour taste in my mouth.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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