Join Jesse Freeman for an in-depth discussion in this video Adding a "game over" effect, part of Unity 5: 2D Essential Training (2015).
- Now at this point,…when our player dies,…we do turn off the spawner,…but everything else just seems…to keep moving.…One of the things that we wanna do…is make everything stop.…Now, we can go through…all the objects in the game,…and either stop their velocity,…or in the cases of the background, textures,…we can tell them to stop scrolling.…But, that's a lot of work.…One of the easiest ways we can do this…is to actually manipulate time,…and, just tell the time scale to go to zero.…
That, in essence, would pause our game.…As soon as the player dies,…we'll pause our game.…Then, we can re-start it by…resetting time back to its…default value of one.…Let's take a look at how we can…implement a very basic time manager…into our game.…Let's go into the Scripts folder…and create a new C# Script,…called TimeManager.…Let's open up the TimeManager…in MonoDevelop and let's start…adding in the logic we're gonna need.…
First, let's remove these…two methods.…Next, let's create a public method…called, ManipulateTime.…Here,we're gonna pass in two properties.…
Super Zombie Runner riffs off the popular endless runner genre: a one-button casual game that's not only fun to play but exciting to build. The focus of the work is a reusable code base that you can extend and make your own, while learning the basics of object pooling, supporting multiple screen resolutions, tracking scoring, and multi-platform publishing. Along the way, Jesse covers key Unity features, such as working with sprites, creating animations, and leveraging the UI components.
- Working with sprites and animation
- Creating the player
- Spawning GameObjects
- Adding obstacles and collisions
- Building the game objects and logic
- Managing game state
- Creating pixel-perfect cameras
- Designing for multiple screen resolutions
- Adding scores
- Optimizing performance
- Publishing to desktop, web, and mobile platforms
Skill Level Intermediate
1. Working with Sprites
2. Creating Repeating Textures
3. Creating Obstacles
4. Object Pooling
5. Creating the Player
6. Setting Up the Game
7. Adding UI
8. Creating More Obstacles
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.