AnimationPlayer Stuck Frame

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JohnSpirit

So I have an AnimationPlayer which animates the flash when i shoot in my game. The thing is i can shoot either bullets or rockets with left and right click on my mouse and sometimes when i push them together or one exaclty after the other one, a frame of the animation is stuck on screen and goes Away only if i press again one of the shooting buttons(clicks).
What is wrong?

enter image description here

enter image description here

enter image description here

:bust_in_silhouette: Reply From: CassanovaWong

is_shooting or can_shoot? I don’t see why change the variable if it does nothing…

so, maybe that along with the can_shoot_rocket variable… and otherwise, maybe it just needs an intermediate/reset animation, or set animation frame to zero, or just stop the animation.

hello, i just put another animation player on my player scene so one of them has the shoot animation and the other the rocket shoot animation and it fixed the problem. Thanks though.

JohnSpirit | 2022-02-23 14:52