Código: Selecionar todos
STEP
#region TrocaSprite
if place_meeting(x,y+1,Obj_Block){
if hspd > 0{
state = "move";
sprite_index = sprt_PlayerWalkD
image_xscale = 1;
}else if hspd < 0{
state = "move";
sprite_index = sprt_PlayerWalkD
image_xscale = -1;
}else if global.key_shoot{
state = "tiro";
sprite_index = sprt_Tiro
}else{
state = "idle";
sprite_index = sprt_Player
}
}
show_debug_message(state)
#endregion