//check if jumping if place_free(x,y-1) //if jumping use the gravity {gravity=0.5}else{gravity=0} //make the gravity go down gravity_direction=270