- Home /
Load Level when i click on some object
I`am beginner and i need help with scripting.Can someone help me. I want to make script when i click on some object using FPC go to next level.
Using:
Application.LoadLevel
Answer by Coldhell · Mar 20, 2015 at 04:49 PM
wait you can try the first script he wrote, there's simple a semicolor missing at the end of ("Level1"), incase you didn't try that
Answer by DryTear · Feb 02, 2013 at 05:51 PM
attach to any gameobject as long it has a Collider on it
function Update(){
if(Input.GetMouseButton(0))
{
Application.LoadLevel("Level")
}
}
This don`t work for me but i find this and work. Хowever thanks.
function On$$anonymous$$ouseOver(){
if(Input.Get$$anonymous$$ouseButtonDown(0)){
Application.LoadLevel("Level");
}
}
Your answer
Follow this Question
Related Questions
Next Level (Loadlevel) 3 Answers
Load Level on Collision 1 Answer
Next LEVEL Load Problem. 2 Answers
Delays when move to another scene 1 Answer
Next lvl code help 1 Answer