I can not find in the documentation. How to deploy a sprite mirror. Those. Initially, as it is drawn, it moves quite normally. But you need to deploy it mirror when it goes in the opposite direction. I know that in theory you can draw another sprite list and just use it, but such a powerful engine as a phaser should have something native to it.

Here is an example of how to move forward.

The question on the knowledge of the phaser, how to deploy the sprite mirrored in the native way?

    1 answer 1

    Found a solution. It was necessary just to make scaling on x in -1

    sprite.scale.x = -1;