I’m working in a 2D game and trying to make my character shoots from any state but also that if, for example, he is crouched, he shoots crouched but if, in the middle of the crouched shoot animation, he gets up, continue with the standing shoot animation, or if he shoots while jumping and he lands in the middle of the shooting animation, he continue with the shooting animation standing up, I don’t know if I’m explaining myself. I can’t figure out how to do this. If anyone can help me it would be appreciated.
I mean if it’s 2d i assume you’re using 2d sprites.
You can’t procedurally animate them, your only option is probably to store the state of the character to a variable then upon shooting determine which shooting animation to use depending on whether the character is standing or crouching or something else.
Thanks for your time. Correct i’m using sprites. The issue is that I can run the appropriate shooting animation if he crouches, jumps, etc. The problem is changing shooting animation if a shooting animation is already running and the character changes position by crouching or jumping or whatever. How can I, for example, change from crouching shooting to standing shooting with the remaining animation frames or from crouching shooting to jumping shooting with the remaining animation frames and so on?