You'll have to link the portals together in order for them to work, and that's best done by assigning a unique ID to every portal and then having connected portals store the ID of the portal it connects to:
Portal(0).connectID = 3
Portal(1).connectID = 0
Portal(2).connectID = 0
Portal(3).connectID = 1
Above you can see that portal 0 goes to 3, portal 1 goes to 0, portal 2 goes to 0, and portal 3 goes to 1. That's how I'd connect them together.
Then what you could do is something like this:
-check if player collides with a portal
-check if the portal has a connectID in another map
-dump the coordinates of the player into a file
-make some cool transition effect into a black screen
-load new map into memory
-set player coordinates to that of the "end portal"
-make another coll transition effect from black into the map
TheComet
Your mod has been erased by a signature, please reduce him [overall] to no larger than 120 kg please.
