- Home /
How do you add levels to your game?
Hi! I'm making a simple puzzle game with 50 levels, but I have no idea how to add levels to my game! If someone could please tell me or leave a tutorial link that would be great! Thanks!
How to add a menu screen page where the player can see the progress within the game with locked/unlocked level number?
If you already have a menu screen and a working save load script, then you just have to add variables of progress into your save file script you serialize. It will be automatically saved and loaded upon request. Then, in your menu scene and in the screen you want the progress to be, you would have to create some kind of gameobject, probably text which you'd like in the script to show the progress. Note how I don't know what kind of progress you're talking about, so the general tips would be to save that progress numerically somewhere and then link it to a gameobject so it is shown on the menu via script.
Answer by Dreamer · Jun 02, 2011 at 02:28 AM
Level is also called scene in Unity. Refer to below how to create scene:
http://unity3d.com/support/documentation/Manual/Creating%20Scenes.html
To add the levels created to game, you can go to build options and tick those level you created.
http://unity3d.com/support/documentation/Manual/Publishing%20Builds.html
To load a level, use Application.LoadLevel(level_name);
http://unity3d.com/support/documentation/ScriptReference/Application.LoadLevel.html
When I click on the links provided by u above I get Error 404 help me out