<undefined> 0 -1 -1000000001 -1 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 ///Initialize door = noone; rm = room; step = 0; image_alpha = 1/4; 1 603 7 0 0 -1 2 self 0 0 1 ///Change room then destroy var spd = 4; if(instance_exists(Player)) { spd = Player.mvspd; } if(rm != room) { image_alpha += 1 / (TILESIZE / spd); if(instance_exists(Player) && door != noone) { with(Player) { var inst = instance_place(x, y, Door); if(inst != noone) { if(x == inst.x && y == inst.y) { room_goto(inst.rm); } } } } else { if(image_alpha >= 1) { room_goto(rm); } } } else { image_alpha -= 1 / (TILESIZE / spd); if(instance_exists(Player)) { with(Player) { if(!place_meeting(x, y, Door)) { with(other) { instance_destroy(); } } } } else { if(image_alpha <= 0) { instance_destroy(); } } } 1 603 7 0 0 -1 2 self 0 0 1 ///Move Player to door if(door != noone) { Player.x = door.x; Player.y = door.y; door = noone; } 1 603 7 0 0 -1 2 self 0 0 1 ///Draw fade draw_set_color(c_black); draw_set_alpha(image_alpha); draw_rectangle(0, 0, window_get_width(), window_get_height(), false); draw_set_alpha(1); 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 0