Jump to content

How to keep position of sprite after being scaled(mine keeps moving to left corner)


gg.wilson
 Share

Recommended Posts

Hey everyone hopefully this is worded ok and you are having a good day.

I currently have a playable character which can be moved around and collide with objects.

The issue i am having is once it has collided with a certain object i want the players character sprite to increase in size however when i do this using sprite.scale.setTo for some reason the position of the player sprite moves to 0,0. 

Apologise if that was not enough information i can provide more if needed.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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