Sign in to follow this  
scofieldly

drag event when sprite scaled

Recommended Posts

hi everyone,

Here is the problem I meet,
 

I have a sprite and I can drag it in the right way when game has normal scale

but when I  change scale by 
game.world.scale.setTo(2);
things become different.

 

the sprite moving distance become twice as my cursor moving distance, when the scale becomes 3 the distance also become triple as well. 

 

so do you gays have any good ideas for sync cursor and sprite position, many thx.

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.