Godot Version
func process_physics(_delta) -> State:
if parent.movement:
parent.velocity.x = speed * parent.movement * _delta
if parent.movement > 0:
parent.animation.flip_h = -1
elif parent.movement < 0:
parent.animation.flip_h = 1
else:
parent.velocity.x = 0
Question
only the first time does the player turn around when an opposite direction is pressed, but everytime after that nothing happens.