how to do flip_h AnimatedSprite to after playing animation AnimatedSprite remember position to which directed sprite
my code:
if velocity.x <= 0:
$AnimatedSprite.fliph = true
elif velocity.x > 0:
$AnimatedSprite.fliph = false
what i must add to in code to do it work?