Am Junior Game Developer, Modeller, Musician and Artist

Horror Lover.

trying to make the sprite change but it dont work

code

if keyboard_check(vk_up){

sprite_index = spr_playerwalkcima;

}else{

sprite_index = spr_player;

}

if keyboard_check(vk_down){

sprite_index = spr_playerwalkbaixo;

}else{

sprite_index = spr_player;

}