Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 /
  • Help Room /
avatar image
0
Question by stephen_george98 · Jun 23, 2016 at 08:59 PM · c#uiscenegameoverimplementation

Temple Run and Subway Surfers Game Over Implementation?

When you die in one of these 2 games I took screenshots of (Temple Run and Subway Surfers), what exactly comes up to say "Game Over" and posts your score and all-time high score?

Is it a different scene that is loaded after you die and says "Game Over" and has all of your stats?

Is it some sort of UI element that is enabled and becomes visible after the player dies and then it says "Game Over" and shows your stats (Just like the Game Over lesson on the Unity Survival Shooter tutorial)?

Or is something else entirely that I have no idea of? If so, please let me know so I can learn something new. Thank you :) Temple Run game over

Subway Surfers game over

game-over.png (401.7 kB)
game-over-2.png (239.9 kB)
Comment
Add comment · Show 5
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 Hexer · Jun 23, 2016 at 08:03 PM 1
Share

Hi Stephen,

The games that you mention all use an UI overlay. What you basically do is displaying the UI-Panel which contains these "GameOver UI-elements".

The variables such as overall Highscore are saved by using Playerprefs. Link to Playerprefs: link text

Technically you can also display the GameOver-screen in a new scene, but that is just not efficient. I won't advise it.

I hope you found this useful, have fun making games!

avatar image stephen_george98 Hexer · Jun 23, 2016 at 08:29 PM 0
Share

Okay so these games basically use the UI format that is shown in the Survival Shooter tutorial provided by the Unity Team? So it is kind of like building a $$anonymous$$odal Window, except I am not asking the player: "Are you sure you want to quit?", I am letting them know that they died and it is "Game Over"? @Hexer

avatar image Hexer stephen_george98 · Jun 23, 2016 at 08:47 PM 0
Share

Well, I have never seen the UI from the "Survival shooter" game of Unity.

But the same principles still applies. You just modify the text that is within the statement. I suggest you looking at some Unity Tutorial, regarding the UI. Link: Unity UI Tutorials

If you want to change the event of an interactable object, than I would suggest taking a crash course in C# scripting.

EDIT: I had took a look at Unity's Video about the GameOver screen for the Survival Shooter. I have to admit that it is an quite useless video. It doesn't explain the Unity-UI clearly.

avatar image stephen_george98 Hexer · Jun 23, 2016 at 08:30 PM 0
Share

Also, why does it say that this post is still awaiting moderation? I posted it almost 24 hours ago lol. @Hexer

avatar image Hexer stephen_george98 · Jun 23, 2016 at 08:54 PM 0
Share

I am sorry to read that. Newer members of the Unity QA, will need to go through a moderation panel and get their post accept by one of the moderators. And only than the post will be visible to other users.

0 Replies

· Add your reply
  • Sort: 

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.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Why the StartCoroutine(GameOver()); don't work 3 Answers

I want my UI rawimage to do something when the movie texture has finished 1 Answer

How to show and remove text before player has started the game? 1 Answer

Revers Object Transfrom using an array problem in UI !! 0 Answers

UI Shop Query 0 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