- Home /
How to add multiple levels?
I'm making a really simple roll a ball game that as of now has only 1 level. I wish to add many more levels to make it more fun, but I am really confused on how to do that. I tried simply to create another scene and edit it independently, but it quickly turned into a mess.
Is there and easier way to add levels to a game?
Answer by CiberX15 · Feb 08, 2014 at 05:14 PM
Well to start with you could use File/Save scene as to save your scene under a new name and begin editing a new level from there so that you can keep all of your settings.
Also if you go into File/Build Settings you can tell unity what maps you want to be able to load.
Then you can use the Application.LoadLevel("LevelName") function to load whichever level you want by name. You can also do Application.LoadLevel(0) to load levels based on their place in the build settings array.
http://docs.unity3d.com/Documentation/ScriptReference/Application.LoadLevel.html
Thanks!! Before, I didn't know what code to put into a script to tell it to go to the next level. And now I know.
$$anonymous$$uch thanks!
So each level should have each scene. If you let me know more detail about this method, I am very happy.
@Sgt.$$anonymous$$oose - if your question is answered, please click on the checkmark next to the answer to close it out. Thanks.
Answer by dqflynn · Mar 09, 2014 at 07:45 PM
Sorry for not knowing the exact code, but a suggestion that will make it look cool is once you collect all the cubes on a given level, make the current plane something that you can fall through, then you will fall onto another.
Answer by SmallLion · Dec 07, 2020 at 12:52 PM
@Sgt.moose most easy way is duplicate and change.Way to duplicate is"click on Level 01 and press Ctrl+D