- Home /
The question is answered, right answer was accepted
How to set a game-over scene when an object hits another?
I have 6 walls and a ball the objective is to dodge the walls and get to the bottom,how do i set it so when the ball hits the wall its game-over and when the ball passes a certain point they have completed the level? Thanks in advance!
Answer by Imawizrd · Jun 24, 2013 at 01:25 AM
Hi there!
Firstly I suggest looking up some basic tutorials. YouTube is a great place to look for some! These tutorials will teach you exactly this. Also, I suggest researching using your search engine of choice (mine is google) to find solutions to your problems. It's a lot faster work flow wise to find a solution rather than waiting for someone to reply to your question here.
I'm not going to do your work for you. But I'll nudge you in the right direction. Head to the links bellow to read up on some basic API you can use.
http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnCollisionEnter.html
http://unity3d.com/learn/tutorials/modules/beginner/scripting/if-statements
Tutorials:
http://www.youtube.com/watch?v=QMWhtKjUr10
Have fun learning Unity! :)
Follow this Question
Related Questions
If GameObject with tags not on scene 1 Answer
Allow userto load custom unity levels/scenes. 2 Answers
Enter next level 1 Answer
Select object in another scene 1 Answer
How the scene works 1 Answer