How to go from one level to the sub-level of another level

Lowenfas
Sat, 05 Aug 2023 00:04:32 +0000
Programming & Scripting

As you can see in the level below I first load the new level, and then stream one of it’s sub levels. Once this code runs, the old MenuLevel disappears but no new level spawns, then the character spawns and just falls.

I needed a second level because my main menu needs to have gameplay in the background, which meant I needed to make a different Gamemode with no PlayerCharacter and changing the gamemode in a sub-level changes the gamemode for EVERY sub-level.

Why does the code above not load in my level?

3 posts - 2 participants