if (x < (((room_width / 2) - (sprite_width / 2)) + 240)) speed = 0; if (global.monster[0] == 0) image_index = 1;