Home
Username:
Password:
Introduction to Game Development Using Unity 3D Tutorials

Health System / Game Over Menu




Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com’s entire library of video tutorials.


Learn More

Subtitles of the Movie

Loading the Game Over Menu is pretty easy. You probably already guessed how to do this. Remember that when we made our Main Menu, we went to File and then Build Settings. And in our Build Settings, we dragged these 2 scenes, so that these numbers or the order of them would become available in script. So, to load back to the main menu when we die, you can open up the player script, go down to where it says HEALTH is smaller than or is equal to 0. And then in here, you can basically load, get the level by typing Application LoadLevel and then go back in to 0, which is our main menu. So now if I run the game and I basically get shot, as soon as I die, we will go back to the main menu. Now of course, you can make another scene, drag it into the Build Settings and then make it a Game Over scene, have some animations or some music playing. And the from there, fade on back to the main menu. So that's how to go back to the menu and it basically feels like very much a game already. But there's still more to do, so let's move on.

Tutorial Information

Course: Introduction to Game Development Using Unity 3D
Author: Efraim Meulenberg
SKU: 34092
ISBN: 1-936334-03-8
Release Date: 2010-02-23
Duration: 5.5 hrs / 75 lessons
Work Files: Yes
Captions: Available on CD and Online University
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 98,729 Video Tutorials (23,265 free)
  • Video Available as Flash or QuickTime
  • Over 1026 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available