- Home /
GAMEOVER SCRIPT for worm game
I was following TornadoTwins tutorial on how to build a game in Unity 3D and he never mentioned a GAMEOVER script. Can you please help me. Can you upload pictures so I can copy the GAMEOVER script. THANKS. and can you help me that every time that I want my worm to go backwards he flies. PLEASE HELP.
Answer by 3dDude · Apr 24, 2010 at 10:34 PM
to fix the problem were it goes up when the down button is pressed you could go to the Edit menu/projectSettings/Input. there should be a default button called "Vertical" click on that then there should be a setting called down delete this and then when you play you game it should not go up. what should happen if this works is that nothing will happen when press the down button.
for a gameOver script you could find the health control script(i think thats the name) and add to the part write below case 0; add this code Application.LoadLevel (1); and if you have done the latest Tutorial then you have played around with the build settings and know how to use them. so make sure that the first current is set to the main menu scene.
hopefully this helps. :)
EDIT: sorry you could try write after the "case;" you could say "LIVES = 3;" hopefully this will work.
The backward fix worked. Thanks. The game over script not so much. Please help I have three seines. $$anonymous$$ain $$anonymous$$enu, Worm, and Game Over. When I start the game from the $$anonymous$$ain $$anonymous$$enu the game works and the GA$$anonymous$$E OVER. When I get a game over and from the game over screen I restart to the $$anonymous$$enu, worm seine works for 1 second and goes to the game over screen. PLEASE HELP
is there some way you can post the project folder some place? i can't think of why it would do that with out seeing your scripts
how are you getting from the gameOver scene back to the main menu?
Answer by Gerardo Quinones · Jul 07, 2010 at 09:51 PM
I CANT FIND THE CHARACTER CONTROLLER CODE FROM TORNADO TWINS SITE.PLEASE HELP.
Gerardo: Do not reply in all caps, and do not piggy back on other people's questions. Both are very poor form.