D
Dragonfly
Guest
Hello!
I made a run and jump animation for my sprite in my game using this code
The code for the running works but I get this error for the jump code..
Any of you know what I do wrong?
Thank you in advance
I made a run and jump animation for my sprite in my game using this code
Code:
if (move !=0) image_xscale = move;
if (place_meeting(x,y+1,obj_grass_middle))
{
if (move !=0) sprite_index = spr_player_run; else sprite_index = spr_player;
}
else
{
if (vsp < 0) sprite_index = spr_player_jump; else sprite_index = spr_player;
}
Any of you know what I do wrong?
Thank you in advance