Hi!

I'm using this script to check if one point one a sprite intersects another
sprite:

 sprite1QuadList = sprite(1).quad
 sprite2RectList = sprite(pPath2).rect
 if not(sprite1QuadList[2].inside(sprite2RectList )) then alert "out of
range"

The problem I'm having is that Director uses the Quad (of sprite 2), as
opposed to it's actual outline, which makes Director think that point two IS
inside sprite2 even when it is not!

It seems that there's a work-around for this problem with the "intersects"
command (as you can see in my quote below), but I can't find any with the
"inside" function... any ideas?

Quote from Intersect command Help:
"If both sprites have matte ink, their actual outlines, not the quads, are
used. A sprite's outline is defined by the nonwhite pixels that make up its
border. The Matte ink does not work with vector shape sprites."

Thanks for any help!

Michael Nadel
[EMAIL PROTECTED]
Mediart - Multimedia as an Art Form









[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