|
Game Exercise 2: Writing sprite behavior scripts Lingo: spritenum (property), the clickOn, cursor [cast membernumber], on mouseEnter, on mouseWithin, on mouseLeave, etc. Also, basic properties (locH, locV, width, height, forecolor, rotation, blend), marker navigation, and if-then statements.
|
HOMEWORK: READING
In Director Help, locate the Table of Contents and read the section titled: "Writing Scripts with Lingo." The most important part for you to understand right now is the section: "Scripting Basics: Types of Scripts." This link may or may not work on your computer.
STUDIO
1-Create 3-8 brick images in Photoshop that are all the same size. Save as pcts, jpegs, or gifs.
2-Import these images into Director and arrange onstage.
3-Write a custom behavior for each brick sprite or alternatively, set up a three frame movie (navigation with buttons) that shows experimentation with different types of behavior scripts attached to sprites. The example above should give you some ideas.