Hello everyone
I would like to ask you about it.
I’m making a game of governing a country where the player is the ruler. Then you can click on the city on the map to enter the city screen, and click on different cities to display different screens.
But what is the best way to switch the screen in multiple cities? And when you return to the map from the city screen, do you have to load the map again? Is there any way to keep the map running in the game? Instead of loading again.
You should have a MAIN map and inside the main map you can have STREAM LEVELS
like this:
when the game begins you can load all the cities and keep them hidden ‘sleeping’ like this:
to ‘wake/show’ a city you can do this:
that will make the level visible and running
to hide the others use the same but setting visible to false.
Bear in mind that each time you make a level visible,
it will start ‘ticking’ and run. even BEGINPLAY will run again and all variables and states will persists from latest visible state. So make it visible is not LOADING it from zero.
When you tag it as not visible it will stop ‘running’ with everything inside.
When you spawn actors on runtime, they will belong to the persistent (MAIN) level and not the stream levels. Even you do that from a stream level BP.
You should research as much you can about stream levels, are very powerfull and easy to use
Good luck!
Thanks for your help, I’ll give it a try.
1 Like