Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

Tags
alice, help me, motion, random, random motion

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.