Shoot animation problem

Hi guys!
I have an animation consisting of 3 frames.
I set the “f” key to shoot.
When I press f the character does not complete the animation but only plays the first frame.
Why is this happening?
The shoot animation is set to Loop

I suppose is because you have other animations, like idle or run,

To achieve a shoot animation set some variable like is_shooting and set to 1 then
if f key pressed set animation Shoot

In the other logic of animations like run, or idle
Just play that animations if variable is_shooting =0

Add a Trigger once condition if you keep f pressed, otherwise you keep changing to the same animation. :slight_smile:

1 Like