Clamp

The Clamp behavior sets a minimum and maximum value for an animated parameter. In the following image, the center star has an applied Vortex behavior set to affect the two airplane shapes. As a result, the airplanes circle around the center star, as indicated by the red animation paths.

Canvas window showing animation paths for two objects, with Vortex behavior applied to a third object

In the next image, a Clamp behavior is applied to the X Position parameter of the outer airplane shape. The Max value is set to 230 and the Min value is set to 0. As a result, the animation path is “clamped”—the image can travel 230 pixels to the right but cannot move left past the 0 point, creating a half-circle animation.

Canvas showing animation path when Clamp behavior is applied to one of the orbiting objects

The circle motion path is essentially cut in half. If a negative value is entered in the Min value slider, the image moves past the 0 point.

Adjust this behavior using the controls in the Behaviors Inspector: