Creating Random Motion using the Randomize behavior
Random Motion allows us to add a little variation to our projects. In fact, using Randomize under Parameter behaviors allows us to target a specific value. Let's see how this differs with a Random Motion behavior.
How to do it...
Double-click to open
03_06
from the exercise folder for this chapter.Press the Space bar to play back the animation. It's three circular shapes being thrown across the screen. We're going to add a random simulation behavior to them. Stop the playback. In the Layers tab, select the Purple, Blue, and Yellow circles as shown in the following screenshot. Go to the gear icon just under the Canvas and choose Random Motion under Simulations.
Play back the animation. You may notice that each of your circles has a subtle bit of randomization to it. To make the circles appear as if they are growing and shrinking, we're going to have the Random Motion behavior affect the z position. Select all three of the Random Motion behaviors...