5

Table Of Contents
Random Motion
The Random Motion behavior animates the position of an object and makes that object
move around the Canvas along a random path.
Although the motion created with this behavior appears to be random, it is predetermined
by the group of parameters you’ve chosen. As long as you don’t change the parameters,
the animation path created by this behavior remains the same. If you don’t like the path
that was randomly generated, click the Generate button in the HUD or the Behaviors
Inspector to pick a new random seed number. This number is used to generate a new
path.
The Random Motion behavior is useful for creating varied animation paths for large
numbers of objects you want to move at the same time. For example, you can create an
arrangement of ten objects in the Canvas and apply the Random Motion behavior to
them all.
You can also use the Random Motion behavior to add variation to the animation paths
created by other behaviors that affect an object’s position. In the following example,
adding Random Motion to an object with the Orbit Around behavior results in a more
erratic animation path from orbit to orbit, although it still moves around the center as
before.
Parameters in the Inspector
Affect Subobjects: This parameter appears when this behavior is applied to an object
that contains multiple objects, such as a group, a particle emitter, a replicator, or a text
layer. When this checkbox is selected, all objects in the parent object are affected
individually. When this checkbox is deselected, all objects in the parent object are affected
by the behavior together.
Amount: A slider that determines the speed the object moves by changing the length
of the animation path. Higher values result in faster motion and longer animation paths.
468 Chapter 9 Using Behaviors