Quantcast
Channel: Answers for "Can I switch scene on a specific time?"
Viewing all articles
Browse latest Browse all 4

Answer by MetaliZeR

$
0
0

Ok, when i use the script it loads my second scene immediately and just skips my first one... What am I doing wrong with the script? I want it to load scene2 when the song in scene1 is complete. Where do i put this script->

// Loads the level with index 0
Application.LoadLevel (2);

In this script-> to make it load scene2 when song is completed?

var changeLevelFlag : boolean;

function Update(){
   if(!audio.isPlaying && changeLevelFlag){
      // do something when the audio isn't playing
      // like change scenes after a tune
   }
}

Thanks Again.


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images