> Look at the 'intersects' function, as in:
> 
> sprite(sprite1).intersects(sprite2)
> 
> sprite sprite1 intersects sprite2
> 
> You can use that upon moving to figure out if you just created a
> conflict.  If so, then bounce off or do whatever it is that you want to do.

That's one way. There are others - actually quite a few others. There's a
decent three-part article on collision detection on director-online, written
by Gary Rosenzweig, which explores a few options - go to
http://www.director-online.com/, and do a search on "collision detection".

-Kurt


[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!]

Reply via email to