Some animations not showing accordingly

so whenever i press z with right or left keys it does not show the jump animation, and when i press x with left or right keys the running shooting animation does not show either. here is my code


do not make me repost please

Okay, for the first screenshot, the reason why the jumping animation changes to the walking animations while moving left and right is because while you move while jumping, the walking animations for either side override the jumping animation. To fix this, add a condition in each of the walking animations to check if Konu is on the ground.

Also, on an unrelated note, why don’t you just flip the walking animations for each direction? It cuts out the need to manually flip over each sprite into a new animation.

For the second screenshot, maybe try creating a variable that is set to true while the gun is out, and is set to false every other time. You could then add a condition that the regular walking animation only happens when the variable (let’s say in this case it is a boolean) is set to false, and when the gun is out, make it only happen when the variable is set to true. Don’t forget to add code to change each variable to the other when needed.

sorry if i am asking too much but can you show the example code please

Something like this:

image
Full Event

image
Specific condition:

I feel like i made something more complex

That is true, although the general idea still stands. Hopefully you’ll be able to use my screenshots to help help you in fixing the issue. Unfortunately I can’t recreate all of your code with the fixes, I just don’t have the time.