Join Jesse Freeman for an in-depth discussion in this video Controlling text with code, part of Unity 5 2D Essential Training (2015).
- Now that we have our blink text in place,…let's make it a little bit more eye-catching…to the player by making it blink.…To do this, we're going to go into our GameManager class.…Inside of the GameManager we're going to need to import…the new UI components.…Let's type out using UnityEngine, UI.…Now we'll be able to reference the text field…that we created on the seam.…Let's create a new public property type to Text…and we'll call this continueText.…
Next, we'll make two private properties.…One will be to manage the blink time…and the other whether it needs to blink or not.…Now, let's go back into our game.…We'll select our Text field…and we'll copy out the text that we have in it.…We'll be pasting this back into that class in one second.…The other thing that we want to do…is select the GameManager and drag the reference…of our text field over to where we have…the Continue Text property field.…
Now let's go back into our game…and in the start method, towards the bottom,…let's set the continueText as text property…
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.