Chapter 6
188
Accelerating and decelerating sprites
To create more natural motion in tweened sprites, use the following settings in the Sprite
Tweening dialog box:
•
Ease-In and Ease-Out control how a sprite moves from its start frame to its end frame, no
matter how many keyframes are in between. Ease-In makes a sprite move more slowly in the
beginning frames; Ease-Out makes the sprite slow down in the ending frames. This setting
makes the sprite move more like an object in the real world.
•
The Speed settings control how Director moves a sprite between each keyframe. The Sharp
Changes option is the default setting. Using this option, Director calculates how to move the
sprite between each pair of keyframes separately. If a sprite’s keyframes are separated by unequal
numbers of frames in the Score, or by different amounts of space on the Stage, abrupt changes
in speed may occur as the sprite moves between keyframe locations. Smooth out these speed
changes by choosing the Smooth Changes option.
Sprite with modified ease-in and ease-out settings
To change the acceleration or deceleration of a sprite:
1
Use one of the tweening methods to create a moving sprite.
2
Turn on View > Sprite Overlay > Show Paths to see how far the sprite moves between
each frame.
3
Select the sprite and select Modify > Sprite > Tweening.
4
Use the Ease-In and Ease-Out sliders to specify the percentage of the sprite’s path through
which the sprite should accelerate or decelerate.
5
Select one of the following speed settings:
Sharp Changes
moves the sprite between keyframe locations without adjusting the speed.
Smooth Changes
adjusts the sprite’s speed gradually as it moves between keyframes.
Tweening other sprite properties
In addition to tweening a sprite’s path, Director can tween the size, rotation, skew, blend, and
foreground and background color of a sprite. Tweening size works best for vector-based cast
members created in the Vector Shape window or in Macromedia Flash (bitmaps can become
distorted when resized). Director can tween all of these properties at once.
To make a sprite fade in or out, you can tween blend settings. To make sprites spin or tilt, use
rotation. To create gradual shifts in color, you can tween color settings.
Note:
To prevent Director from tweening a certain sprite property, select Modify > Sprite > Tweening and turn off any
of the tweening options.
Summary of Contents for DIRECTOR MX-USING DIRECTOR MX
Page 1: ...Using Director MX Macromedia Director MX...
Page 12: ...Contents 12...
Page 156: ...Chapter 4 156...
Page 202: ...Chapter 6 202...
Page 244: ...Chapter 7 244...
Page 292: ...Chapter 10 292...
Page 330: ...Chapter 12 330...
Page 356: ...Chapter 13 356...
Page 372: ...Chapter 14 372...
Page 442: ...Chapter 16 442...
Page 472: ...Chapter 18 472...
Page 520: ...Chapter 19 520...
Page 536: ...Chapter 20 536...
Page 562: ...Chapter 23 562...
Page 566: ...Chapter 24 566...
Page 602: ...Chapter 27 602...