> Is there another way to do this that would test if the user is
> approximately almost exactly within the rect of the invisible
> sprite?? (not "exactly", but "approximately exactly?")

Can't you compare the area of the interset rect with the area of the
exact invisible rect and when the interset rect achieves a specified
percentage of the total are you're almost exactly there?

tIsect = tUserRect.intersect(tExactRect)

tIsectArea = tIsect.width * tIsect.height
tExactArea = tExactRect.width * tExactRect.height

if (float(tIsectArea) / tExactArea) > tTargetPctg then
  -- you are almost there
end if

Where tTargetPctg is something like 90%, or 95%, thus the user must be
close to exactly over the target area? Untested email Lingo, but it
should help demonstrate my idea. Yes? No? Other?

Cheers,
Tom Higgins - Technical Product Manager
Macromedia Director and the Shockwave Player
http://weblogs.macromedia.com/thiggins/

... 

[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