Grow/Shrink

The Grow/Shrink behavior lets you animate the scale of an object, enlarging or reducing its size over time. At the first frame of the behavior, the object appears at its original size; the settings of the behavior determine whether the object grows or shrinks over the duration of the effect. The vertical and horizontal growth rates can be set to independent values, for asymmetrical effects.

Note: The Grow/Shrink behavior cannot be applied to cameras or lights.

You can use the Grow/Shrink behavior with high-resolution graphics to zoom into an image, such as a map or photograph. You can combine this behavior with the Throw or Wind behavior to pan across the image while zooming into it. The Grow/Shrink behavior can also be used to emphasize or de-emphasize images in your project. For example, you can enlarge an object to make it the center of attention, or shrink the object while introducing another object to move the viewer’s eye to the new element.

Adjust this behavior using the controls in the Behaviors Inspector:

The HUD consists of two rectangular regions. The first, a rectangle with a dotted line, represents the original size of the object. The second, a solid rectangle, represents the relative growth rate. Drag a border of the sold rectangle to grow or shrink the object. Drag the slider to adjust the scale of the HUD controls, increasing or decreasing their effect.

HUD showing special controls for Grow/Shrink behavior