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

Useful Lingo in This Chapter
  • Behaviors: Using parameters
  • Input: Dragging with the mouse
  • Lists: Using linear lists
  • Lists: Using lists that contain lists
  • Strings: Using ASCII codes
  • Strings: Converting strings to uppercase
  • Strings: Parsing strings
  • Strings: Replacing characters in strings
  • Text Members: Using monospaced fonts to align text
  • Text Members: Using text members to store data
  • Text Members: Setting line spacing
  • Text Members: Matching screen location and text
  • Text Members: Coloring text
  • Graphics: Using line shape members

    I've been told many times that word searches are the most popular puzzle game in the world. With its combination of simplicity and long play times, I believe it.

    To play word search, you need both luck and logic. At the start of the game, you can quickly scan the matrix and notice a few words. But by the time you are down to the last few words, you are forced to examine the matrix letter by letter.

    Although they hold no real educational value, other than teaching concentration and patience, word searches are still a good way to wrap a theme up into a game. The best word searches use words that are all related to each other, thus making the game more appealing, assuming you are interested in the theme that all the words share.

    As a Lingo program, word searches present quite a few problems. This is probably why you see so few word search games done with Director. Most notably, programmers have trouble generating a random arrangement of letters that contain the words and using graphics to highlight a playerÕs selection. WeÕll look at those issues here and come up with solutions.