Algoritme or Other metod to change map

Hello everybody ! sorry if my explain are bad , i’m french ^^

I’m trying to make a system to change map for my player . I have multiple map(scene) like a grid :

I make a system to change map , and it’s work! But i have to manually set all collider (four for up, down, right, left) of my scene , to set "up for this map load “this” map, right for this map load “this map” …and i have to do that for a lot of scene ! and i have more than 100 map(scene) , and a few more in future !

so i want to win time and i don’t know how i can do a little method to automatically set the good scene to load , depending of the map where the player is :confused:

I’m a little newbee so i want to know if someone have some idea or solution to help me for that !

Thx for you’re help! and have a good day !

Well, you could possibly set up two static variables. So you have row/column.
Each room has four colliders(or whatever colliders are needed if it’s a corner room or side room). Hitting the top collider subtracts 1 from row. Hitting the right collider adds 1 to column. etc.
Then if your rooms follow a naming convention, you just tell it to load for example room1-2.

So if I’m in room1-1 and I hit the down collider, I know to add 1 to row, so I load room2-1 for example.

Ho Great ! it was simple to solve , i’ll do that !

Thx man ! Have a good night! :slight_smile: