Load scene

Hi guys, i would like to ask if someone can give me some help. im prototyping a game with a medium world, but i would like to not have it all load at same time and dont have load screens between the parts. So wh i would like to know is how can i achieve this:

  • When im in scene 1 i would like to have just scene 2 active at same time;
  • When in scence 2 have only the adjacent ones, like 1. 3 and 4 and so on…

What is the best way to achieve this? I appreciate any kind of help.

do you have some sort of data structure holding the room data? if so you can just add a collection of “adjacent rooms” to that data; then if you keep a collection of currently active room scenes you can compare that to the adjacent rooms for the room the player just entered when they transition

Right now i hv diferente terrains with them props only one after the other in place, but loading all at same time just kill the performance

The logic is simple. While a player is in a zone, load the zones next to him and unload distant zones.

In practice it helps to have things like corridors and elevators. Make sure the player can’t see anything, and can’t get in a fight. These dramatically reduce the amount of work you cpu is doing, allowing you to slip in the loading and unloading without affecting gameplay.

Im working on a top down isometric game so its easy do dont show other areas…