I'm making an enemy with a state machine, and I'm trying to set it up so that if it comes close enough, the state swaps over from a Chase state to an Attack state.
In the Attack state, a random number is picked at enter(), the physics_process() counts down that number, and when it hits 0, the attack animation should play in the correct blend_position and then swap back to the Chase state.
However, as you can see in the clip, the attack animation runs only half the time. Does anyone know if I'm doing something wrong or how to fix this?