Time for action – animate the runner

Let's get that RN RuNning!

  1. Click on the green Y-axis cone to switch into Top view. Pan and zoom so that the hallway fills the Scene view, like it did when we were building our lighting rig.
  2. In the Hierarchy panel, select the runner GameObject.
  3. In the Animation window, click on the Record button.
  4. Name the new animation animRun. A new, reusable animation appears in the Project panel.
  5. Punch in the following values on frame 0:

    Position.x: 6.5

    Position.y: 1.2

    Position.z: -31.5

    Time for action – animate the runner

    If those values are already punched in when you create the animation, click on one of them and press the Enter key to make sure Unity registers ...

Get Unity 4.x Game Development by Example Beginner's Guide 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.