here is three pics to explain events and problem. please tell me what is wrong with it.
for control this is the even
Condition
player is on the floor
Variable attack is zero
variable fly is zero
keys are pressed
trigger once
Action
Change the animation
do 7 to variable attack