Hi Tom,
tom phillips wrote:
<snip>
> 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)
First you create a rectangle (from the tool palette)
that takes up half your stage. Make it transparent.
This will provide you will the area to constrain the
movement of your sprites to.
Next you can use the built in behaviour from the
library palette -->Interactive-->Constrain to Sprite.
(there you will also find a behaviour for Collision Detection).
Or make your own:
on beginSprite me
sprite(whichSprite).constraint = --here you put the
--sprite number of the transparent rectangle you have created.
end beginSprite
(Check out the Help files-->Lingo help--> Constrain)
For the animation you will have to resort to some
math that I am afraid I can't help you with. There is
a behaviour in the Library -->Animation-->Automatic
that may come in handy.
HTH
John
[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!]