Here it is:
var inst = instance_create_depth(0,0,-9999,oWarp); //create Warp object, which will change room with fade-in and fade-out animation inst.target_x = oPlayer.x; // inst.target_y = oPlayer.y; // inst.target_room = RoomTV; //change room and teleport player when screen is covered (it takes ~~1.5 sec) execute after 3 seconds // I think the timer stays in the last room, which caused the error because it can't run from previous room var inst = instance_create_depth(0,0,-9999,oWarp); inst.target_x = oPlayer.x; // inst.target_y = oPlayer.y; // inst.target_room = Room1; //this code returns the player to the previous room in 3 seconds done
if you still have questions, please ask