Exercise 11: Make an Animation Finish Where It Starts
In a
new file, change the fill color swatch to Blue.
Using the Oval tool, draw a circle. (Hold down the [Shift]
key to draw a perfect circle.)
Next you’ll add a few small different colored circles as decoration
on the circle ball, but before drawing the circles, change the swatch color and
save some steps.
Select the circle and convert it to a symbol [F8].
Name it bounceBall, leave the default Movie Clip behavior, and
click OK.
Position the bounceball in its starting position, near the top
of the screen.
Click the Timeline on frame 10 and insert a keyframe [F6].
Before you move anything , click the Timeline on frame 20 and insert
anotherkeyframe [F6]. At this point you should have three identical
keyframes.
Position the red current frame marker on frame 10 and move the bounceball down
to the bottom of the stage.
Set the Motion Tween for frame 1 through frame 10 and for frame
10 through frame 20. (You can save time by doing both at the same time,
hold the Shift key down and select frame 1 and frame 10.) Access the Properties
panel and you can set tweening for both keyframes. Select Motion.
Select Control > Test Movie [Ctrl] + [Enter]. Save the
animation because we will add to it next.
Click on the first keyframe and from the Properties panel
set the Ease slider to -80, this will cause the bounceBall to start
slowly and speed up at the end.
Select the keyframe in frame 10 and from the Properties panel
set Ease to 80. Test the movie again; you'll see that the bounceBall
slows down before it stops at the top, making it look more natural!
Rotating a Motion Tween
Perhaps if the bounceBall animation rotated on its way down and back
it might look a bit more realistic. Follow these simple steps to add a bit of
realism.
Click on the first Keyframe and then in the Properties Inspector
panel, set the Rotate: drop-down to CW (clockwise), and then use
a rotation of 1 times.
Click on the Keyframe in frame 10 and choose CCW (counterclockwise),
and 1 rotation.
Test and save your animation if you wish. Now you can see why I had
you add those extra little circles on the ball, it makes the rotation easier
to notice on the way down and back.