Note About This Book: Advanced Lingo For Games was written by Gary Rosenzweig in 2000 for users of Macromedia Director 7. It is presented here for free on an as-is basis, with no updating. Most of the information and code here can be used in the most recent version of Director. The book has been reproduced from the final editing files archived in 2000, and not the final proof galleys. So some minor differences between this version and the printed version my exist. The entire contents of this book are Copyright 2000, Gary Rosenzweig. No part may be reproduced or copied without written permission. The text here is provided for individual use only.
Want to thank me for making this book available for free? Just buy Special Edition Using Macromedia Director MX and we'll call it even!

Advanced Lingo For Games
by Gary Rosenzweig


Chapter 7 Section 4

Putting It All Together

Creating the game from this script is the easiest part of this chapter. First, just create a little box bitmap. I made mine in the CD-ROM example movie 9 pixels square, which leaves a white line between boxes because they are spaced 10 pixels apart.

Then, drop this sprite in the Score in sprite channel 11. Use the arrow keys to move it up off the Stage. Then, copy and paste the sprite into channels 12 through 318.

Now, drop the behavior script onto the frame script channel. One additional touch would be to draw a rectangle shape around the playing area. You might have to run the game a few times and adjust this rectangle to get it to fit just right. Again, see the example movie if this is not clear.