O'Reilly logo

Unity 3.x Game Development Essentials by Will Goldstone

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required