- Home /
How do I make a GameOver script?
I just can't figure it out! Here is what I already have. What do I need to add? btw, I am a beginner. :)
Screen shot 2012-06-08 at 5.57.04 PM.png
(84.3 kB)
Comment
The GameOver Scene is created and I want it to launch when Lives reach 0.
Answer by bompi88 · Jun 09, 2012 at 12:03 AM
If you want to load a scene, add this to OnTriggerEnter somewhere after "Lives--;":
if (Lives == 0) {
Application.LoadLevel ("Name of GameOver Scene");
}
And before you can load a level you have to add it to the list of levels used in the game, in build settings.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
I need help instantiateing a bullet 0 Answers
Customizing GUI buttons 1 Answer
Scripts were perfect but now they are all messed up please help 0 Answers
Saving a value if it is larger than the current value... 3 Answers