Hi all,
I'm trying to build a maze game and have the following question.
I wonder if it's possible to check if the location of a sprite (player) intersects 
another sprite (the maze)  by using the loc (locH/locV) parameter.
The point is that I want to know if the intersection is going to take place BEFORE 
'mySprite.loc' is going to change. I use the loc parameter because the rect of the 
sprite is changing constantly (it's an animated character).

I tried:
intersect(targetRect,sprite(maze).rect)  --doesn't work because i want to use the 
transparancy of the maze
and:
if intersect(sprite(mySpr),sprite(maze)) then 'undo the new location' --doesn't work 
because by then it's too late

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

I hope I make myself clear.
Thanks in advance for your help,
Frits (Dir8)

By the way: do you know good places on the web for open source dir8-files (not 8.5) 
that deal with the above, or (maze)games in general?


[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