• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker How do you make a jump state?

H

hiro094

Guest
[I am writing this using a translate.]
Hello,
I'm make 2D side scrolling action games.

GameMaker Studio 2: Melee Attacks Tutorial

I'd like to add a jump state to this video.
However, I'm also considering attacking while jumping.
In that case should I create a jump state and a jump attack state?
Or do you write the jump in Free State?
 

Slyddar

Member
These days I just use an air state, which allows you to transition into the attack state. Then I run an animation script at the end of the step event, which allocates the correct attack sprite depending on if we are in the air or on the ground. A jump state is essentially just an air state, once you've allocated the jump movement speed.
 
Top