if (init == 0) { if (place_meeting(x, y, obj_mainchara)) obj_mainchara.floorheight = floorheight; init = 1; }