Jump to content

Rotate sprite in different side


drdoc
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

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