Well, I don't know how you're making it move.

There are many ways to make something move.  If you're doing it in Lingo, 
then you're probably shifting the locH/locV (or possibly the rectangle 
itself), in which case, you'll have to use a different set of equations to 
make it go differents.  If you're moving with LocH, for instance, try 
subtracting instead of adding to make it reverse direction.

If you're using the straight score, which is probably unlikely but 
theoretically possible, you'd have to make it jump to another section of 
the score that has another track.

If you're using the score with behaviors, you'll probably have to write a 
few of your own (or edit the existing ones) to make it do what you 
want.  If you're unfamiliar with Lingo, then this might be the trickiest 
for you.

Right now you've got it happening somehow, so whatever mechanism you're 
using now is what you'll need to manipulate to make it change direction.

- Tab

At 12:35 PM 11/25/00 +0000, Kev wrote:
>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!]

Reply via email to