Jump to content

How to make sprite rotate around another


Handehua
 Share

Recommended Posts

I'd like to know how to make a sprite rotate around another or the center of the screen.

I've tried 

sprite.pivot.set(game.world.centerX, game.world.centerY);

and then rotated it with

sprite.angle += 4;

but what I end up with is the sprite rotates in an oval shape and not perfectly

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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