So I want my player to be able to do a separate attack with a separate animation if they are in the air.
If player is in the air perform ground slam attack.
Can someone please help I will pay for a video showing how to do this.
Develop games in your browser. Powerful, performant & highly capable.
it would look something like this. this will make you descend at 2x the normal rate.
on spacebar pressed
subevent: player is on floor >>> normal attack animation
else >>> set vector y to player.platform.maxfallspeed*2, set animation to "falling swing"
is playing "falling swing" >>> set animation "smash"
note: gravity should be set to half of maxfallspeed for this example, and jump strength should be adjusted for the gravity.