I don not under stand why
>= works but not
delta is the amount of time elapsed since the last frame. It's always going to be greater than 0, and since you add
delta_timer before the
if statement, it will never be equal to 0.
even with >=, the process stops at shoot_timer = 0.2.
I'm not exactly sure what you mean by this, but if you're asking why the animation stops at 0.2 seconds, it might be because you're calling
set_animation_finish() after 0.2 and resetting the timer.
Another way to handle this would be to make a
Timer node that lasts for 0.2 seconds and plays the animation every time the
Timer times out.