5.5

Table Of Contents
337Motion User Guide
Create a decaying oscillation in Motion
When you apply the Oscillate behavior to an object’s rotation or position, a common
effect is to “decay” or “dampen” the animation over time. This means that the animation
gradually slows or comes to a stop. You can achieve this effect using keyframes to slow the
amplitude of the oscillation.
Decay an oscillating rotation using keyframes
1. In the Timeline in Motion, drag the playhead to the frame where you want the animation
to begin, then press A to enable keyframe recording.
2. In the Layers list, select the Oscillate behavior.
3. In the Behaviors Inspector, set the Amplitude to the maximum value you want to use in
your project.
Note: When keyframe recording is enabled, any value change to a parameter using the
Inspector, HUD, or canvas creates a keyframe.
4. In the Timeline, drag the playhead to the frame where you want the animation to come
to a stop and set the Amplitude value to 0.
When the object is selected, you can see the dampening of the animation—caused by
the keyframed Amplitude parameter—in the Keyframe Editor (when Animated is chosen
from the pop-up menu above the Keyframe Editor). The following illustration shows the
keyframed Amplitude parameter of the Oscillate behavior superimposed over the resulting
change to the Oscillate curve itself. See Display the Keyframe Editor in Motion and
Keyframe Editor controls in Motion.
Note: The Oscillate behavior must be selected for its curve to be visible in the Keyframe
Editor.