How to make different game stages like super monkey ball?

I would like to build a game with 5 stages.

When a player completes stage 1, he will go to stage 2.

Do I put all 5 stages in a scene?

But, how can I separate them?

The concept like super monkey ball.

I’m about to start doing my set-ups for a multiple level game. I’m not certain how I am going to do it, but my current plan is:

Have anything that will be in any level as prefabs. Have an array for what is in each level. So the follow is:

Level 1, load level scene, read array of level 1 assets, load prefabs referred to in array at positions set in that array.

Go to transition scene after level complete.

Level 2, load level scene, read array of level 2 assets, load prefabs referred to in array at positions set in that array.

Repeat

Yep, good approach - also read up on

DontDestroyOnLoad for GO’s that need to persist between levels and the various LoadLevelXXXXXXXX functions available underneath Application

Application.LoadLevel
Application.LoadLevelAdditive etc…

Thanks for your sound advice.

So far as your suggestion,

Level 1, load level scene, read array of level 1 assets, load prefabs referred to in array at positions set in that array.

Go to transition scene after level complete.

Level 2, load level scene, read array of level 2 assets, load prefabs referred to in array at positions set in that array.

And,

Application.LoadLevel
Application.LoadLevelAdditive

May I ask is there any tutorial to demo? I saw Penelope but it did not use Application.LoadLevel and Application.LoadLevelAdditive

Just posted my setup somewhere else, I think it is relevant here :

I usually have one scene called Game (or sometimes Engine - since I’m inconsistent).
It has all the shared stuff (player object, HUD, some prefabs, some pools with reusable objects, etc).
This scene then loads a Scene with the level (ie Level1 etc). This level then loads a Scene with assets that are shared between multiple levels (a theme - for instance, the first few levels all have the same enemies, so these enemies go into the Theme1 scene).

I usually have one scene called Game (or sometimes Engine - since I’m inconsistent).

Q. May I ask how did you create a new scene with the name ‘Engine’? As I cannot see ‘Add a new scene’ in the attached image.

This scene then loads a Scene with the level (ie Level1 etc). This level then loads a Scene with assets that are shared between multiple levels (a theme - for instance, the first few levels all have the same enemies, so these enemies go into the Theme1 scene).

Q. Do you mean I create a scene, I call it master scene here.

Master scene loads level1 scene.

level1 scene loads a scene with common assets for multiple levels, I call it SharedObjectsScene = Theme1 scene you mentioned.

So there are scenes for

  1. Master scene
  2. Theme1 scene
  3. level1 scene

My question: how to create various scenes and use script to load scene?

Do you have a demo project for me to download?

329548--11614--$scene_118.png

Cmd-N will create a new scene.
Or file / new scene.

Loading scenes can be done with Application.LoadLevel (first time) and then Application.LoadLevelAdditive.

No demo project, sorry.

I created a master scene.

I added an empty game object to it.

I wrote a js called load.js

function Start () {
	Application.LoadLevel ("Level1");
	DontDestroyOnLoad (this);
}

I created a Level1 scene.

Add Level1 scene to Build settings

I open unity remote and press play.

I can see Level1 scene. However, the object cannot move when I drag the button which sourced from CameraRelativeControls.

Then, I build and run it (not use unity remote) directly on ipod touch, the CarmeraRelativeControls can work.

So, does unity remote does not work with load?

Also, how should I use

  1. Object.DontDestroyOnLoad
  2. Application.LoadLevelAdditive

And, I am not sure does the above js is correct or not as I set it in Start() but not Update().

And,
// Make this game object and all its transform children
// survive when loading a new scene.
function Awake () {
DontDestroyOnLoad (this);
}

Seems I wrote the wrong code.

Please advise.

The remote works find for me, not sure what is going on here.

And I use Application.LoadLevelAdditive for this stuff, not Object.DontDestroyOnLoad - because otherwise I would have to take care of destroying them later.