I guess this is what I want:
if intersect(mySpr.targetLoc,sprite(maze)) then -- but that is not possible in Lingo, right?


A nice easy way to cheat this is to make the maze (or a copy of a plan of the maze) out of either a Flash sprite or a Vector member. You can then do what you want by using hittest(). Or, another way would be to have a index color bitmap. You could then use getpixel to figure out not only if the target point is in a clear area, you could find out what else it is by checking the color. This way you could distinguish between walls, doors, traps, treasure, etc.
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to