How to flip a sprite on-command

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Daxter.

how do i make a sprite flip horizontally when moving it

:bust_in_silhouette: Reply From: exuin

Sprites have a flip_h property, set that to true

You can also set scale.x *= -1 though I’m not sure that’s any different from using flip_h. The one use case I can think of would be if you want to animate the flip.

shevek | 2023-03-05 10:36