How to change state of enemy? It continues to repeat a function

await and _physics_process don’t mesh well together, Godot is going to run this function ever frame including the animation play and await. Change their state before awaiting the animation.

Also make sure to paste scripts with proper formatting

1 Like