Alice Community  

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

Reply
 
Thread Tools Display Modes
Random Motion Help
Old
george3356
Guest
 
Status:
Posts: n/a
Exclamation Random Motion Help - 05-09-2011, 09: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 09:39 PM.
   
Reply With Quote
Old
ieges
Guest
 
Status:
Posts: n/a
Default 05-09-2011, 09:44 PM

Go to world-functions, and there should be a random number section.
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 05-09-2011, 09:50 PM

well place the random number into the distance, and then click the more option on the random number, which gives you maximums and minimums, choose what you need, and there you go.


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Thank you, (plus a cont. link)
Old
george3356
Guest
 
Status:
Posts: n/a
Smile Thank you, (plus a cont. link) - 05-09-2011, 10:50 PM

Quote:
Originally Posted by ieges View Post
Go to world-functions, and there should be a random number section.
Cool, thanks to both of you guys. I got this part of it done. I'm stuck on one more thing, if you guys think you may be able to help out that would be much appreciated.

http://www.alice.org/community/showthread.php?t=6507
   
Reply With Quote
Reply

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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.