I cannot seem to make an animation work in mid air as an air attack animation.
Here is the sample of my code.
I cannot seem to make an animation work in mid air as an air attack animation.
Here is the sample of my code.
You have to set up a more robust state machine, here are some possible errors:
-If the character is attacking in the air, the events 9.1, 9.2 (attacking on ground stand / moving, I guess) are executed along with the event 9.4, so if the conditions “Is moving” or “Is not moving” are true while jumping (I think they are), GD will switch between animations 4/6 and 5 on the jump attack.
To check if this is the problem, add the condition “Player is on floor” on the events 9.1 and 9.2, so they don’t execute on the jump attack.
-Make sure there are no other events switching the animation while the player is jumping. For example, if there is an event that switches to a “falling” animation, that event should be executed only if the player is NOT attacking, otherwise you’ll get a problem like the first one
PS: I’ve fixed the image link
Thanks! I was able to fix it. Just now need it to not repeat the air animation if the player is holding the attack button.