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 8 Section 1

Useful Lingo in this Chapter
  • Behaviors: Using Parameters
  • Behaviors: Using a ranged parameter
  • Graphics: Changing sprite members with Lingo
  • Graphics: Moving sprites
  • Graphics: Using a set of bitmaps
  • Graphics: Using registration points
  • Graphics: Using points
  • Input: Dragging with the mouse
  • Lists: Using linear lists
  • Math: Using random numbers
  • Members: Using Cast libraries
  • Programming: Collision Detection
  • Variables: Keeping score

    For our first arcade-style game, we'll look at a common Director game. The Falling Objects Game has a simple premise: objects fall from the sky and you have to catch them.

    This game idea is probably used so much because the game can be adapted for so many different purposes. The objects can be promotional items that reflect the products a company sells, they can form an educational quiz, or they can simply be entertaining.

    First we'll look at the basics of the game, then we'll build it, and finally we'll discuss the ways in which the game can be used.