arrow
arrow
arrow
arrow
H  10  11  12  13  14 

Hands-On: Flash MX 2004 Basic Animation

Exercise 14: Working with Animation and Motion Guides

The Library panel This hands-on exercise shows you how to create a motion tween using a motion guide. A motion guide lives on a layer above the graphic that will be animated. The guide is there to help determine the path that the animation will take.

Follow these simple steps:

  1. Open the Flash MX 2004 file named: motionGuide.fla it has all the files you need to create the exercise.
  2. Lock the layer called bkgrnd so you won’t be able to add any content to that layer.
  3. Add a layer and then rename it to balloon.
  4. Open the Library [F11] and then open the graphic symbols folder.
    The Properties Inspector for the Balloon instance.
  5. Drag a copy of the balloon graphic onto the Stage, and then use the setting shown above in the Properties Inspector panel. Set W: to 36, H: to 49, X: to 16, and the Y: to 19. The settings are not that critical, so try to get somewhat close to them. (Note: the W and H will resize the balloon graphic).
    The Properties Inspector for the Balloon instance.
  6. In the balloon layer of the Timeline find the 220 th Frame and place a keyframe [F6]. Using the settings shown above in the Properties Inspector panel set W: to 244, H: to 320, X: to 548, and the Y: to -31.
    The Properties Inspector for the Balloon instance.
  7. Click someplace in the balloon layer and then choose Motion from the Tween: drop-down. In the Ease: slider set the In to -22. All other settings are set at default for now.
  8. Select [Control] + [Enter] to see your new animation on the Timeline. At this point it will move from the left side of the screen to the right side of the screen, and it should Motion tween from a small balloon to a rather large balloon. Next you’ll add a Motion layer to add a bit of realism.
    The Timeline with a motion guide.
  9. Select the balloon layer and then select the Motion Guide icon to add a Motion layer above the balloon layer. (This icon sits between the Add Layer icon and the Add Folder icon, and has a red arched line).
  10. The line tool smoothing option.While in this new Guide layer, select the pencil tool with a smooth setting.
    Set it to any visible color such as red and make it about 2 or 3pts in size. Using the image below as an idea guide, try to duplicate the line I used. Be sure that you are located in the First frame of the Guide layer before starting.
    The Timeline and Stage for the motion guide.
  11. This is where it can get a bit tricky. After the line is drawn to your liking, you will have to connect the balloon in frame 1 to the beginning of the red line, and then moving over to the last keyframe in Frame 220 you will have to connect the larger balloon to the end of the line. Don’t fret too much, it might work on the first try or after several, but you will eventually connect the balloon to the guide line. Follow the steps and images below for help in doing this, but before, you should check to see if you have Snap to Guides chosen, select View > Snapping >Snap to Guides.
    Balloon placement   Balloon attached to guide line    Snapping options shown.
  12. Can you spot that tiny white circle in the middle of the balloon on the left? If you grab it by the black selector arrow tool and then drag it over to the beginning of the new guide line, it should snap to the guide line. You can tell if it has attached itself by scrubbing the Timeline by the red frame marker. If it is attached, the balloon will follow the direction of the line. BUT FIRST… you have to connect the ending balloon too or it will not work. So follow the same steps as above with the last frame. I increased the zoom to 400 so I could see the circle better.
    The tiny white circle.   Attaching the guide line.

  13. If you had luck on the first try, give yourself a pat on the back, and consider yourself lucky! If not, and you got it on the third or tenth try, congratulations, if have what it takes to stick with it and you’ll go far someday. I see trips to the bank in your future! Alright, if you have the time, perhaps you’d like to add a distant balloon to the playing field. View the screen shot below to see how I added a new balloon with a motion guide and had the animation start after the first balloon was on its way.
    Showing two guideline layers on the Timeline.
  14. To add this distant balloon, I selected the bkgrnd layer, inserted a new layer above it and renamed it to thunderbuster. On Frame 40 of that layer I added a keyframe [F6] and then dragged a copy of thunderbuster out of the Library.
    It is not real important that you copy every detail of this adventurous balloon, just create a motion guide layer that will drift the balloon across the landscape. I did decrease the balloon size at the starting point and increased the size of the balloon at the ending point so it appeared to be coming a bit closer to the foreground. It’s that realism thing, hard not to try to make it believable.

Find your starter file here:
http://profal2.com/cis127/pdf/assets/flash/motionGuide.fla

 

Back to Top