- Home /
Question by
Nagrom229 · Jan 14, 2013 at 05:59 PM ·
gameobjectpositiontracking
GameObject Position Tracking?
I am a noob when using JavaScript. I would like it so that if GameObject.Ball reaches the height of "X", it will reset the current scene. I would love it if you pointed me in the right direction but I would absolutely adore you if you make the script. Thanks.
Comment
Answer by Nagrom229 · Jan 14, 2013 at 07:05 PM
Sorry, but that just freezes the whole game. Thanks anyway.
I'm trying to get it so that if the Ball goes to the Y axis of -4.321019, then it will reset the level. This is the code:
if (transform.position.y >= -4.321019) { Application.LoadLevel("Pizzled"); }
What have I done wrong?
Your answer
![](https://koobas.hobune.stream/wayback/20220613090932im_/https://answers.unity.com/themes/thub/images/avi.jpg)