O'Reilly logo

Apple Motion 5 Cookbook by Nick Harauz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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...

  1. Double-click to open 03_06 from the exercise folder for this chapter.
  2. 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.
  3. Play back the animation. You may notice ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required