Using Director > Animation > Accelerating and decelerating sprites |
![]() ![]() ![]() |
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 choose 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 |
Choose 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. |
![]() |
![]() ![]() ![]() |