Hello, new to godot and programming.
I have two states of an enemy (patrol/chase) when my chase state is running my animated sprite is stuck at the first frame only.
Eventhough the enemy is chasing the player (in chase state).
func _physics_process(delta):
if state == "patrol" or $Detection_area/CollisionShape2D.disabled == false:
patrol()
# $AnimatedSprite.play("Patrol")
if state == "chase":
chase()
# $AnimatedSprite.play("Chase")