To flip a Sprite when moving left or right?
-
The title says pretty much it, what kind of coding would I need to add to the controls to be able to flip my character sprite when moving left?
-
There is no flipSprite function but you can do it using a negative scale e.g.
setSpriteScale(sprite, sprite.xscale * -1, sprite.yscale)
Will flip it in the x axis