O'Reilly logo

Unity 3D Game Development by Example by Ryan Henson Creighton

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

Time for action - I like to move it move it

In the case of our bouncer Game Object, we'll set up three keyframes: one for the up position, one for the down position, and a third to bring it back to the top of the bounce.

  1. Click on the X cone in the Scene view's axis gizmo to view the level from the side.
    Time for action - I like to move it move it
  2. Enter an initial value of -0.5 for the bouncer's Position.y value. A little, diamond-shaped keyframe symbol appears on frame 1 at the top of the Animation view. This means that Unity is remembering the position, rotation, and scale of the Game Object on that frame.
  3. Click-and-drag the vertical red line to frame 10, or enter the number 10 into the ...

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