Hi Mike
rect(1).union(rect(2))
union (rect1, rect2)
Union determines or returns the smallest rectangle that will enclose the two
rectangles in question. Therefore if Sprite(1) was the fixed sprite and
sprite(2) the smaller moveable then the sprite(1).rect.union(sprite(2).rect)
should yield a union rect equal to sprite(1).rect if sprite(2) is completely
inside of Sprite(1). Using the intersect function will tell you that a
portion of sprite(2) is within sprite(1) (see Kerry's email). So depending
on need, you could use the union or the intersect functions to determine
whether your completely inside or partially inside the fixed sprite.
Sincerely
Mark R. Jonkman
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]