Jump to content

Flip Scale X anchor center point


Heppell08
 Share

Recommended Posts

Is there a way to have the anchor set so that if I put a sprite ontop of a sprite it stays center? I have a gun that is overlapped on the player sprite. They are both 2 seperate images. I have the scale.x *=-1; and it works like it should. My issue if if my player moves left, the flip on the gun doesn't stay. The animation and player sheet is 6 frames of 3 walking left, 3 walking right for now. I have more that needs added at a later stage. What I am really looking for us the gun to stay at the center of where I like it to be. I've tried slight modifications to anchor.setTo() but doesn't seem to help. Any ideas?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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