Game Development Reference
In-Depth Information
3.
Turn on Record (by clicking the red button on the left), and drag the time
indicator to the second-to-the-last key (Figure 9-33 ).
Figure 9-33. The Ball sprites in the Dope Sheet
4.
Select the key.
5.
Copy the key with Ctrl + C (copy).
6.
Move the time indicator to the next position after the last key and
press Ctrl + V (paste).
The copied key/sprite is added to the animation clip, but there is an easier way to add sprite keys.
You can drag them directly into the Animation editor from the Project view. You may wish to use the
Two Panel Layout for this operation to see the clip thumbnails.
7.
Drag the sprites from the Inspector into the Ball Test animation clip until all,
including the first sprite, are mirrored (Figure 9-34 ).
Figure 9-34. The duplicated keys and the sprites they represent
8.
Click Play in the Animation view, and watch the ball bounce.
The timing is much nicer. The Animation editor allows you to adjust the timing of the individual keys.
The default time for each sprite is 0.1 second. If you wish to slow down or speed up the clip, you
can do so by adjusting the Speed in the clip's state in the Animator view.
 
Search WWH ::




Custom Search