I have the conflict working But I don't know how to actually make it stop or
bounce off..so for instance
If sprite 1 intersects sprite 3 then
?????????????????????????????????????
Any Ideas..
Thanks in Advance
-KEV-
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Tab Julius
Sent: 25 November 2000 06:43
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: <lingo-l> HELP HELP !!!
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!]
[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!]