At 06:04 AM 11/26/00 -0800, tom phillips wrote:
>I`ve just started using lingo and I`m lost, I`` have a
>project due in in 3 wks so here`s a couple of q`s.
>
>1. When a moving object(a) hits another object (b) how
>do I make object (b) dissapear??

You could set the 'visible' property of that sprite to false.

      sprite(x).visible =FALSE
or   set the visible of sprite x to FALSE

alternatively you could relocate it off the stage by setting its locH/locV 
(or just loc point) to extremely negative numbers (-1000, -1000).  Effect 
to the user is the same.


>2. How do I make 5 sprites move round half the stage
>randomly but stay on their half and stay on the stage.
>(The stage is split vertically down the middle)

Use the 'random' function to make new numbers.  Apply them to the locH and 
locV (or just loc point).  I assume because you said 'move' you want them 
to incrementally relocate (as opposed to just appearing somewhere else).

Test the result to see if it exceeds the boundary of whatever area you want 
to constrain it to.  If so, apply different numbers to move it off, or 
regenerate until you get some that are safe.  Depends on what you want it 
to do - how you want it to react.  If you want it to "bounce off" a wall, 
that's a different behavior than if you just want it to crawl around.

- Tab


[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