Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Daxter. |
how do i make a sprite flip horizontally when moving it
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Daxter. |
how do i make a sprite flip horizontally when moving it
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