- Home /
Duplicate Question
How to create a complicated game over scenario ? HELP
I know it sounds stupid but I have looked every where and I can't find an answer. I have a ball and seven walls I want to go to my levels scene and I also want it so when the ball passes a certain point the level is completed so I added this script: function Update () { if(transform.position.y< -5) Application.LoadLevel("gameoverscene") }but it isn't working i also have a raycast that makes the ball move side to side to dodge the walls could that be messing it up? thanks in advance!
If you have copied that code, you don't have ; on end of the line.
Follow this Question
Related Questions
Scene saving 3 Answers
How to create a complicated game over scene ? Help 1 Answer
Create and Name a new scene through the script. 1 Answer
Rotate camera around gameobject 1 Answer
A node in a childnode? 1 Answer