02.02.2013 Views

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 3: Simple cut-out animation<br />

Cut-out animation is produced by splitting a character in<strong>to</strong> small segments and then animating<br />

the segments simply by moving and rotating. If you intend <strong>to</strong> use motion tweening, a very fast<br />

method for moving and rotating symbols in <strong>Flash</strong>, then you will need <strong>to</strong> place each segment on<br />

a separate layer. In this chapter we will take a very simple cat character and create several walks<br />

of increasing sophistication. The character was drawn directly in <strong>Flash</strong> using the drawing <strong>to</strong>ols<br />

discussed in the previous chapter. Then the character was divided in<strong>to</strong> sections by using the Lasso<br />

<strong>to</strong>ol. To select the Lasso <strong>to</strong>ol you need <strong>to</strong> click the Tools but<strong>to</strong>n indicated in Figure 3.2.<br />

Figure 3.2 Selecting<br />

the Lasso <strong>to</strong>ol<br />

Figure 3.3 Selected area<br />

To use the Lasso <strong>to</strong>ol draw around the character by clicking and holding<br />

the left mouse but<strong>to</strong>n. The selected area will show an overlaid dot<br />

pattern. To convert a selected area in<strong>to</strong> a symbol press F8 or choose<br />

‘Modify/Convert <strong>to</strong> Symbol...’ from the menu. In the dialog box choose<br />

‘Graphic’ as the symbol type and enter a descriptive name. The selection<br />

will change from the dot pattern <strong>to</strong> a bounding box. The name that you<br />

give the symbol will be the name displayed in the Library. You can view<br />

the Library at any time by pressing F11 or selecting ‘Window/Library’ from<br />

the main menu. When the segment is a symbol you can use it as many<br />

times as you like either by dragging it out of the Library or by copying an<br />

instance of it on the stage and then pasting the instance in<strong>to</strong> a new frame or<br />

new layer of the current frame. You can even paste a duplicate of the symbol<br />

in the current layer but remember that this will not work with motion<br />

tweening. The next step is <strong>to</strong> ensure that the rotation centre is correct.<br />

If you intend <strong>to</strong> use motion tweening then it is important <strong>to</strong> choose carefully the point about<br />

which the segment will rotate.<br />

To adjust a symbol’s pivot point select the Free Transform <strong>to</strong>ol from the Tools palette and<br />

move the white circle. The white circle defines the point about which the symbol will rotate.<br />

To get an accurate placement it is usually best <strong>to</strong> use the Zoom <strong>to</strong>ol. Using the Zoom <strong>to</strong>ol you<br />

can move in and out by selecting either the ‘+’ option or the ‘−’ option and clicking, or you<br />

can drag a rectangle round the area you wish <strong>to</strong> zoom in on and then <strong>Flash</strong> will resize <strong>to</strong> suit this<br />

rectangle. The amount the artwork moves when using the arrow keys is dependent on the scale<br />

35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!