vonhellblazer
Member
I tried Shaun Spalding's way but it did not want to cooperate with me, making my sprite disappear every time I walked. My sprite doesn't disappear now, but all it does is show the jump animation. I need it to play the correct animations with the correct actions and not disappear when I try to walk.
GML:
if move != 0 image_xscale = sign(move);
if on_ground and vsp = 0 { sprite_index = s_player_idle; }
if on_ground and (hsp != 0) { sprite_index = s_player_walk;}
if not on_ground { sprite_index = s_player_jump; }
if not on_ground and key_jump { sprite_index = s_player_flip }