STEP { gravity_direction = 270; if place_free(x,y+1) gravity = 0.5 else gravity = 0; if (vspeed > 12) vspeed = 12; } COLISIÓN PISO { if (vspeed > 0 && not place_free(x,y+vspeed)) move_contact(270); vspeed = 0; } IZQUIERDA { if place_free (x-4,y) x -=4; } DERECHA { if place_free (x+4,y) x+=4; } SALTO { if (not place_free(x,y+1)) vspeed = -8 } PLATAFORMA if (place_meeting(x,y-1,object1)) { if hspeed < 0 { object1.x -= 1; } else { object1.x += 1; } } if (place_meeting(x+hspeed,y,object1)) { hspeed = -hspeed; }