Chapter 10. Animation Basics
In this chapter, we will polish our game by adding a win sequence. When the player completes all the tasks that they need to in order to win the game, we would like to show them a sequence of congratulatory messages. In a more detailed game, this might be a cut-scene as a way to another part of the game, but as we are simply learning, we'll take this opportunity to learn some animation using both scripting—with linear interpolation, and also through the Animation tool that is built into Unity.
You will learn about:
- Fading the screen using GUITextures and scripting
- Transitioning between values using linear interpolation
- Animating using curves in the Animation window
- Layering 2D objects
Game win sequence
We will create a sequence ...
Get Unity 3.x Game Development Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.