sA3LabDoor 0 -1 -90 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 image_speed = 0; myblock = instance_create(x, y, oSolid1x4); state = 0; active = 0; alarm[0] = 1; init = 0; 1 603 7 0 0 -1 2 self 0 0 1 if (distance_to_object(oCharacter) < 80) { active = 1; state = 2; image_index = 8; with (myblock) instance_destroy(); } else active = 0; 1 603 7 0 0 -1 2 self 0 0 1 if (distance_to_object(oCharacter) < 80) { active = 1; } else active = 0; if (state == 0) { if (active) { state = 1; with (myblock) instance_destroy(); sfx_play(sndDoorOpen); } } if (state == 1) { if (image_index < 8) { image_index += 0.5; } else state = 2; } if (state == 2) { if (active == 0) { state = 3; myblock = instance_create(x - (facing == -1) * 16, y, oSolid1x4); sfx_play(sndDoorClose); } } if (state == 3) { if (image_index > 0) { image_index -= 0.5; } else state = 0; } 1 603 7 0 0 -1 2 self 0 0 1 if (facing == -1 && init == 0) { image_xscale = -1; x += 16; init = 1; } 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 -1