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 3 Section 3

Putting It All Together

The only other piece of code needed to make the game work is the simple frame script that causes the movie to loop on a single frame.


on exitFrame
  go to the frame
end

Besides the code, you need to worry about the appearance of the bitmap members and the text in the text members. Remember that you can use either type of member for the moveable sprites and the destination sprites. However, for bitmap sprites, you need to pay careful attention to the registration point because it will be used to determine how the sprites lock to each other.

The positioning of the sprites in both the Score and on the Stage is important as well. You don't want the items to be directly across from their correct destination sprites. Instead, you want to mix them up a little to make the game more interesting.