• 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
0
Question by Rathanak · Oct 21, 2011 at 05:40 AM ·

how to exit game while playing?

how can i exit the game while playing game and when player run under something like stone ..... and it drop on player and then game over or go back to the old place? but if it don't drop on player the game still continues... ? how can i do this?

Comment
Add comment · Show 2
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 syclamoth · Oct 21, 2011 at 05:19 AM 0
Share

I don't think 'exit the game' is really what you want to do here. Also, didn't I just answer this?

Are you talking about respawn points for players who have died, or gone somewhere they can't get back from?

avatar image Rathanak · Oct 21, 2011 at 07:12 AM 0
Share

syclamoth

Yeah i want talk about respawn do you have simple script ?

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Psychlade · Oct 21, 2011 at 06:42 AM

Unity doesn't automatically allow you to just 'exit' like your wanting. Your going to have to script it in, or use triggers.

You didn't exactly make yourself clear, so I'll just leave this link with you: http://forum.unity3d.com/threads/39709-ending-game

Towards the end, Mirage tells a person how to exit the game. Just make it work with your game by calling from a function, or putting it in a preexisting function within an 'if' statement, and you should be good.

If you want to place the character where you were when you first started(after you fell), I would use triggers. They are pretty easy to set up after a few minutes of watching this video. If you still don't understand, or you don't feel confident, you should look into the tutorials at this site. They are excellent, and have helped me tremendously while trying to learn the interface and scripting. Without their help, I probably would have been learning the interface still. :)

Comment
Add comment · Show 2 · 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 Rathanak · Oct 21, 2011 at 07:10 AM 0
Share

Psychlade

thanks for your answer.... now let me watch your video first may it can help me.. Good luck

avatar image Psychlade · Oct 21, 2011 at 07:57 AM 0
Share

Happy to help! :)

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Moving object between two points (script) 1 Answer

I am trying to make a movement script for my main camera but it isnt working! 2 Answers

How to change scripts to include Waves of Enemy? 0 Answers

Gui text script - help 1 Answer

Script in UNITY ??? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges