An easy way to do it is to simply say: if sprite(x).top < sprite(y).bottom then blah end if
of course, you'll still have to test for the left and right values if sprites x & y aren't more than half the width of your screen. Charlie Fiskeaux II Media Designer The Creative Group www.cre8tivegroup.com 859/858-9054x29 ----- Original Message ----- From: "mike m" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 07, 2002 9:06 AM Subject: <lingo-l> intersect hi, after hunting the internet i found loads on the intersect command, however, what i wanted i couldnt find this is what i am trying to do, if the top of sprite 5 intersects i then beep end if however i cannot work out how to only make it so that if the top, or bottom or left and right intersect another object. Is this possibe? i just cant workit out thanks mike _______________ Mike Malinowski http://www.raynak.com/~mikesnail/test/index.htm [EMAIL PROTECTED] _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail [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!] [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!]
