Player enlarges after entering FlipSpriteCode


The problem you’re running into is because in the bottom image if you look at the transform scale it’s set to .3ish for both x and y. So when you try to flip it later in the code and set it to 1 the sprite blows up to its original size.

What you want to do is instead of forcefully shrinking the size of the sprite set the scale back to 1 and for the actual sprite itself change the pixels per unit.

Privacy & Terms