View Single Post
Random Motion Help
Old
george3356
Guest
 
Status:
Posts: n/a
Exclamation Random Motion Help - 05-09-2011, 10:27 PM

So, for a school project I need to get a rabbit to chase a butterfly and try to catch it with a net. I need the butterfly to move in a random motion. I am using the code for the goldfish from the book (Learning Program with Alice p. 170) as a reference. What I need is to know how to get the lines to read like this:

Do together
butterfly move up {Random number minimum = min Maximum = max}
butterfly move left {Random number minimum = min Maximum = max}
butterfly move forward {Random number minimum = min Maximum = max}

Obviously I know how to get the move up/left/fwd in there, what I can't figure out is how to get the random number min/max part to get in there. Anyone know how to?
All help is appreciated, and the sooner the better. (I have 8 more assignments to finish by the 16th.

Last edited by george3356; 05-09-2011 at 10:39 PM.
   
Reply With Quote