Godot Version
4.7.2
Question
I tried making the player flip to the walk direction, and I got error!
“Invalid assignment of property or key ‘flip_h’ with value of type ‘bool’ on a base object of type ‘AnimatedSprite2D’.”
# Flip Sprite
if direction < 0:
AnimatedSprite2D.flip_h = false
elif direction > 0:
AnimatedSprite2D.flip_h = true