extends Sprite var animation = "idle" func _physics_process(_delta): if !$AnimatedSprite.is_playing(): if animation == "idle": $AnimatedSprite.play("idle")