• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
-1
Question by SonicSlash24 · Apr 24, 2010 at 09:48 PM · gameovertornado-twinsworm

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1

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.

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SonicSlash24 · Apr 25, 2010 at 12:09 AM 0
Share

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

avatar image 3dDude · Apr 25, 2010 at 12:26 AM 0
Share

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

avatar image 3dDude · Apr 25, 2010 at 12:30 AM 0
Share

how are you getting from the gameOver scene back to the main menu?

avatar image SonicSlash24 · Apr 25, 2010 at 04:23 PM 0
Share

Thanks a lot it worked

avatar image 3dDude · Apr 26, 2010 at 12:32 AM 0
Share

your welcome! happy to help :)

Show more comments
avatar image
-2

Answer by Gerardo Quinones · Jul 07, 2010 at 09:51 PM

I CANT FIND THE CHARACTER CONTROLLER CODE FROM TORNADO TWINS SITE.PLEASE HELP.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ricardo · Jul 08, 2010 at 07:11 AM 1
Share

Gerardo: Do not reply in all caps, and do not piggy back on other people's questions. Both are very poor form.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

how to create Objectives 1 Answer

Tornado Twins Tutorials. How to add A Respawn and Game Over. HELP! 2 Answers

Turn colliders off in script 2 Answers

Having Trouble With "Worm" T_T Tutorial 2 Answers

shooting and seeing through walls. 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges