- Home /
how to load a scene
hello I am in need of help I have been runing walls around this all day since 7 I am trying to get my player to walk up to a door and then next scene to load I now there are loads of people asking this I am sorry but I cant get it to work if you can give me script and how to set it up that will help me so much thank plz help me
Answer by landon912 · Mar 17, 2013 at 10:07 PM
Use this to load a new scene :
Application.LoadLevel("MYAWESOMELEVELNAME");
Then just determine when to call the above code :
function Update(){ ///Called every frame
if(Input.GetKeyDown("l")){ //If we press l on the keyboard
Application.LoadLevel("name"); //Load level named name
}
}
Ps : If this solved your question click the check next to this. :)
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
TextMesh isn't updating itself. 0 Answers
Photon Networking Prefab help 0 Answers
How To Stop Destroyer From Destroying? 2 Answers