0 Usuarios y 1 Visitante están viendo este tema.
//Suponiendo que tu personaje golpea con "A".if (keyboard_check(vk_up)) and (keyboard_check(ord("A"))) { //Lo que quieras que pase.}
if (keyboard_check_pressed(vk_up))if (jump){vspeed=-10;jump-=1;};if (!place_free(x,y+1))jump=jumps;if (keyboard_check(vk_up)) and (keyboard_check(vk_space)) {bizzy=false sprite_index=spr_jump_right image_speed=0.6}if (vspeed > 0) { if (left == true) { sprite_index = spr_aterrizaje; } if (right == true) { sprite_index = spr_aterrizaje; } }
EVENTO STEPDOBLE SALTO // Doble Saltoif (keyboard_check_pressed(vk_up))if (jump){vspeed=-10;jump-=1;};if (!place_free(x,y+1))jump=jumps;if (keyboard_check(vk_up)) and (keyboard_check(vk_space)) {bizzy=false sprite_index=spr_jump_right image_speed=0.6}if (vspeed > 0) { if (left == true) { sprite_index = spr_aterrizaje; } if (right == true) { sprite_index = spr_aterrizaje; } }
if vspeed>0if !place_free(x,y+1)if keyboard_check(vk_up)=truesprite_index = spr_jump_right //para poner sprites//if vspeed<0 // cambia el lado para el que el personaje mira basado en la direccion a la que va // image_xscale=1if vspeed>0 image_xscale=-1