Give each door a variable called "EntryPoint" or something.
Find the door in a layout that leads to a door in another layout, and set their EntryPoint variables to the same value, say, 1. This pairs them up. Do this for each "pair" of doors, but make sure each pair has a different value. Now give your player a variable that is set to door.EntryPoint each time he walks through a door.
+On start of layout
+Player.EntryPoint = Door.EntryPoint
-Set Player position to Door
Then include this ^ in each layout, and you should be set!
That's how you do this using different layouts, atleast. If you're making a metroidvania or something of the sort I highly suggest using 1 layout and loading rooms through project files or something.
I want to make something akin to blaster master. So yes a metroidvania type game basically.
Can you, or someone else, give a decent explanation as to what you mean? I've spent some time looking into loading rooms through separate project files, but I don't really understand the benefit, or how that fixes the issue with room/layout 'teleportation'
Also, THANK YOU for the response! I will try that system tonight when I get home and see how it works.
EDIT: I have been mulling over your idea. Even with the correct entrypoint variable loaded, setting the player position to the door wont necessarily grab the correct door if more than one instance exist in the current layout. Or am I misunderstanding your idea...?