Today’s essential question: How can I make an object follow a custom motion path?
The bouncing ball tutorial taught us how animate an object that moves from one point to another.
Sometimes you may want an object to follow a more elaborate path of motion, such as a race car following a track, or a butterfly fluttering around a screen. In these cases, you would draw a line called a custom motion path for your object to follow.
How to Create a Custom Motion Path in Flash CS5
Part 1: Setting Up the File & Layers
- Create a new Flash Document in Actionscript 2.0
- Save the butterfly PNG below. (Or download an image of your choice with a transparent background.)
- Import the picture of the butterfly.
File ->Import-> Import to Library->small__blue_butterfly.png
- Go to the timeline at the bottom of the screen.
Double-click “Layer 1” and rename it “butterfly.”
- Click on the Libraries panel.
Select “small__blue_butterfly.png” and drag it onto the stage.
- Right click (or control + click) on the butterfly image -> convert to symbol -> convert to movie clip.
Name the movie clip “butterfly.”
Part 2: Creating the Motion Path
- Create another new layer on the Timeline, select the Pencil tool in the Tools panel,
and select a stroke color from the Property inspector on the right.
- Draw a path on the stage with the Pencil tool.
- Switch to the Selection tool and double-click the path you just created.
- Choose Edit→Cut to remove the path from the stage temporarily.
- Right-click (Windows) or Control-click (Mac) Frame 1 of the layer that contains your symbol and choose Create Motion Tween from the contextual menu that appears.
A new tween span is created for your triangle symbol.
- Choose Edit→Paste in Place to paste the path you created earlier.
Flash automatically converts the path to a motion path, and your symbol snaps to the path.
- Press Enter or Return to play your movie. The symbol follows the path you created.
Today we will:
- Complete Motion Path tutorial, upload both the flash and swf files to the animation folders in our school Google Drive accounts, and make sure we have shared the folder with Ms. Lawson
- Upload Motion Path animations to YouTube
- Create a new blog post with the following:
- completed Motion Path Animation
- a few sentences on our blog summarizing any challenges you faced today, how you worked through those challenges, and how you currently feel about computer animation.
- any other missing or incomplete assignments