At 01:58 AM 11/25/00 +0000, Kev wrote:
>On behalf of JO I have the same question...
>
>We have a sprite on the stage which is moving via keycommands if this sprite
>interacts with another sprite how do we stop the sprite at the rect or if
>the sprite is made matte then the picture within the sprite. and even make
>it bouce back off a little so as to make a nice effect....



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.

- Tab

________________________________________________
  multimedia engineering + software architecture
  custom xtras � enhanced cds � private training
                www.penworks.com


[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