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

Useful Lingo in this Chapter
  • Animation: Creating a delay with Lingo
  • Behaviors: Calling handlers in other behaviors
  • Behaviors: Using Parameters
  • Graphics: Changing sprite members with Lingo
  • Graphics: Making sprites disappear
  • Graphics: Moving sprites
  • Graphics: Using points
  • Input: Accepting arrow keys
  • Math: Using random numbers
  • Programming: Collision Detection

    When most people old enough to remember the 1970s are asked about arcade games, they inevitably think of the hit game "Space Invaders." Millions of these games were sold, and hundreds of other games like it were developed.

    It is common for a Director game developer to get asked to create an "invaders"-style game. Let's look at the basic parts of such a game and develop our own "Sprite Invaders."