How to make player's idle animation face the right direction when I stop moving?

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

Ok, so I know there is a flip_h function, but I have a spritesheet with separate frames for player’s left and right idle animations and I want to use them separately instead of just flipping one of them.

:bust_in_silhouette: Reply From: TopBat69

If you want the your player to face right while playing idle animation then under the if statement that triggers the to play the idle animation, type

Sprite.flip_h = false

Note that sprite is just an onready variable I created for this example and is not built in godot