Sign in to follow this  

Position of rotating sprite around a point

Recommended Posts

Hello everyone.

I create a sprite and set its pivot to rotate it around the center. Just wonder why not its position updated, as console log wrote its x and y position always at the center, but then it is rotating and moving.

create: function { 
let sprite=game.create.sprite(,,"sprite");
update: function {

Is it the way I do it improper? Can anyone help me out? Thanks.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.