So I know how to make the object that warps the player through the different rooms because I have a separate game that I was working on and it worked out fine (that game was transferred over from gm 1.4 to gm2), here's the code of that original object:
obj_player_1.x = target_x;
obj_player_1.y = target_y;
room_goto(target_r);
and then I add the variables in the objects creation code in the specific rooms they are tied with. I copied this code (which worked fine before) into the new object but for some reason the object warps the player to the right room but in the wrong spot. It spawns the player to the coords where the player was in the previous room when they warped, rather than to the coords that I had set. If anyone can tell me why this is happening now I would be very grateful, sorry if this was a bit long but I just want to be sure that I describe my problem in enough detail to help people understand it better. :3
obj_player_1.x = target_x;
obj_player_1.y = target_y;
room_goto(target_r);
and then I add the variables in the objects creation code in the specific rooms they are tied with. I copied this code (which worked fine before) into the new object but for some reason the object warps the player to the right room but in the wrong spot. It spawns the player to the coords where the player was in the previous room when they warped, rather than to the coords that I had set. If anyone can tell me why this is happening now I would be very grateful, sorry if this was a bit long but I just want to be sure that I describe my problem in enough detail to help people understand it better. :3