Read Foundation Game Design with ActionScript 3.0, Second Edition Online
Authors: Rex van der Spuy
Figure 7-34.
Unite the shapes using the pathfinder panel.
When you unite shapes like this, the bottom shape takes on the shading quality of the top shape. You'll notice that the tapered rectangle now blends seamlessly with the black radial gradient of the circle that was covering it. You can use the Pathfinder menu to subtract a shape from another as well. Do some experimenting with it when you have some time and you'll see how useful it can be for making complex compound shapes.
The next step is to make the bomb's fuse. You're going to do this by drawing a path with the Pen Tool. Illustrator's Pen Tool works exactly like the one in Photoshop, so review that section in
Chapter 2
if you're unsure of how to use it. You'll be switching between the black arrow, white arrow, and Convert Anchor Point Tool constantly while drawing and reshaping paths, so it's really useful to use the following keyboard shortcuts:
(The shortcut keys for the black and white arrows are easy to remember because the letters A and V look a bit like arrows.)
Use these tools to draw the bomb's fuse.
Figure 7-35.
Use the Pen and Arrow Tools to draw a path for the fuse.
Figure 7-36.
The Stroke panel lets you change all of a line's properties.
You're now going to add an artistic brush stroke to the path you've made.
Figure 7-37.
The Brushes panel lets you choose a brush style for your lines.
Figure 7-38.
Choose an artistic brush style for the bomb's fuse.
Figure 7-39.
The brush style is applied to the path.
Figure 7-40.
Use the Send To Back command to position the fuse behind the bomb shape.
The last step is to add a spark to the end of the fuse. You'll use the Star Tool to do this.
Figure 7-41.
The Star Tool lets you draw stars.