|
|
PATH ANIMATION
Okay, so now youve got symbols animating across the screen. Pretty cool, eh? We can animate things along rather nicely, but only in straight lines.
What kind of web deisign course would this be if we didn't teach out to make an animation to follow a smooth, curved path? Totally do-able. In Fact, thats what were doing next. Were going to draw a line for the animation to follow. The line is called a "path". The path can be drawn with any vector tool that creates lines. You can use the pencil, the pen tool, or the stroke from around a shape.
Onion Skinning and Edit Multiple FramesPreviously, we used Onion Skinning to allow us to see multiple frames when creating frame-by-frame animations. Were going to use it again, here to see if the animation curves along with our line. Were also going to turn on "Edit Multiple Frames" which will allow us to effect a symbol without clicking its keyframe first. "Edit Multiple Frames" will help us adjust our symbol to make sure it is on the path we draw.
Youll notice that you can now select and move either car just by clicking it!
Linking an Animation to a PathThe first step to creating a path animation is to create a normal tweened animation and turn on Onion Skins and Edit Multiple Frames. Then well need to draw the path for the animation to follow:
Youll get a new layer. Notice that the Car Layer is now a subset of the guide layer. Youll draw the path on the guide layer.
The path you draw must connect to the exact center point of each symbol, on each keyframe. If you dont draw the line perfectly, you can adjust it, or the symbol it touches, later.
It doesnt matter what color the
line is, or how thick it is. If your animation didnt snap to the line, youll need to adjust the line or the symbol so that the path passes through the center point of each symbol.
You should see the onionskin follow the path!
Quick Step Guide to Path Animation
Turning an Animation With the PathWhen your path turns, you can make the animation look more natural by turning on Orient to Path Direction on the Frames Panel. Your symbol will unpretentiously turn with the line as it makes its journey.
**Make sure that you have the first keyframe of the animation sequence selected.
Drawing Good PathsA symbol will only correctly follow a path if theres no question about which way it should go. Make sure your path is always a single line with a defined start and finish point.
You can draw a circle with no fill to create a circular path. Then use the eraser to cut a hole out of the line..
Affecting More than One Layer with the Same GuideAs long as every keyframe point touches the line, you can apply as many layers to the same guide path as you want. Simply drag the desired layer directly under the guide layer.
To remove a layer from the guide, drag it away from the guide and all its sub layers.
|