• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 9. Built-In Behaviors > Placing The Graphics

Placing The Graphics

In this task, you'll open a file and create an image on the stage. The image, called plaid man, consists of two cast members: one for the body and another for both eyes. You'll place the eyeball graphic on the stage twice (to give plaid man two eyes), creating two sprite instances from a single graphic.

1.
Choose File > Open and select Start.dir in the Start folder for Lesson09; save it as CrazyEye.dir in your Projects folder. Then open the Cast window.

The Cast window contains two cast members: plaid man (cast member 1) and an eyeball (cast member 2).


Figure .


2.
Drag the plaid man cast member onto the stage. Choose Background Transparent from the drop-down list of ink effects on the sprite toolbar at the top of the Score window.

Notice that the stage color has already been set to gray. Setting plaid man's ink to Background Transparent allows the gray stage to show through the white background of the sprite.


Figure .


3.
Drag the eyeball cast member onto the stage twice to add both a left and a right eye to plaid man.


Figure .


You've created two sprites from the same cast member. Because each sprite can have its own set of behaviors, each sprite can be made to behave independently of the other, or both can behave in the same way.

In the illustration, notice that the white corners of the eyeball bitmaps block out part of plaid man's face. Although the eyeball itself is a nonrectangular shape, sprites, by default, display the complete rectangular shape of the bitmap. To display only the eyeball's round shape, you'll use Matte ink to make transparent the surrounding background color of the bitmap while maintaining the white color of the eyeball image.

4.
Choose Window > Score to open the Score window (Windows Ctrl+4, Macintosh Command+4) if it isn't already open.

5.
Select the two eyeball sprites (channels 2 and 3) and choose Matte from the drop-down list of ink effects on the sprite toolbar at the top of the Score window.


Figure .


6.
Choose Window > Control Panel (Windows Control+2, Macintosh Command+2) to open the control panel. Click the Play button to play the movie, or click the Play button on the sprite toolbar.

Although the movie is playing, nothing happens on the screen. Three sprites currently appear on the stage, but because they don't relocate or change in any way, they don't appear to move. In earlier lessons, you learned how to animate sprites by tweening and using keyframes. You can also animate sprites by using behaviors, which you'll do in the next task.

7.
Save your work.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint