So I’m very new to Unity3D and just recently started work on my first, true, large-scale game. Thanks to the wonderful tutorial at BugZergArcade, my time has been very well spent and I’ve been learning quickly.
To avoid the need for artists and still allow for unlimited gameplay, I wished to implement procedural level generation. This is where the tutorials fell short. They don’t have anything on world generation.
When I looked into how to make a script run at start-up the official recommendation seems to be to have an empty GameObject in the world, then attach the script to this. I foresee one of two possible problems with this, however.
- If the scripts run in parallel then the player may be able to move around or fall through the world before it’s finished generating
- If the scripts run in series then I won’t be able to update the GUI as the world generates, which means no “loading bars”
Does anyone have a solution for this, or are my two worries simply unfounded? Ultimately I want the final effect to be: User starts game, user sees main menu, user hits play, user sees a loading screen, user is placed in a random world.