- Home /
need help with scripting
i dont know how to right a script that will end the game when my live run out or advanc me to the next leval like when i have destroyd all my enamys
im farly new at forms so i may have posted some thing in the rong place
so um how dose the skript sugested below work and do i need a script that keep trak of how many enamy ther are active and distroyed
I suggest you take things a little slower, as apparently you are new at coding. Try to follow some tutorial, and make very easy projects before bothering with enemies and life. I advice you that fantastic website for beginners : http://www.unity3dstudent.com/.
i am going ther but so far it make it hard no order i went here http://www.youtube.com/watch?v=issktJJL56s&feature=BFa&list=PL11F87EB39F84E292&lf=plcp and don ther houl tatoreal but they dident includ qwite ervry thing im recheking ther last few vid just incace i mised a pice
Well, there's definitely plenty of codes laying around in this joint. You just have to search around for them. Hell, there's probably enough free-program$$anonymous$$g posted in this Q/A that a person could slap together a decent first-game without typing more than a few words.
Edit : Actually, probably better-than-decent.
Answer by Berenger · Jan 28, 2012 at 01:34 AM
Something like
if( life <= 0 || nbEnemy <= 0 )
Application.LoadLevel( "menu");
or Application.LoadLevel( Application.loadedLevel+1 );
or Application.Quit();
Your answer
Follow this Question
Related Questions
Flying/hover script? 1 Answer
Spotlight Help 0 Answers
AI damage problem 0 Answers
How do i make a fighting system like in oblivion? 1 Answer
How to make a Main Menu 3 Answers