sprWarpDoor 0 -1 90 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 image_speed = 0; image_index = 1; //alarmtime = 60; soundddistance = 175; opening = 1; alarm[0] = 60; 1 603 7 0 0 -1 2 self 0 0 1 sfx_stop(sndA5WarpDoor); switch (opening) { case 1: if (point_distance(x + 8, y + 16, oCharacter.x, oCharacter.y) < soundddistance) { sfx_play(sndA5WarpDoor); } image_index = 2; opening = 2; alarm[0] = 10; break; case 2: if (point_distance(x + 8, y + 16, oCharacter.x, oCharacter.y) < soundddistance) { sfx_play(sndA5WarpDoor); } image_index = 3; opening = 3; alarm[0] = 45; break; case 3: if (point_distance(x + 8, y + 16, oCharacter.x, oCharacter.y) < soundddistance) { sfx_play(sndA5WarpDoor); } image_index = 2; opening = 4; alarm[0] = 45; break; case 4: if (point_distance(x + 8, y + 16, oCharacter.x, oCharacter.y) < soundddistance) { sfx_play(sndA5WarpDoor); } image_index = 1; opening = 1; alarm[0] = floor(random_range(30,240)); break; } 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 0