Alice Community Random Motion Help

 Random Motion Help
 george3356 Guest   Status: Posts: n/a 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.
 ieges Guest   Status: Posts: n/a 05-09-2011, 10:44 PM Go to world-functions, and there should be a random number section.
 sfunk Senior Member     Status: Offline Posts: 1,112 Join Date: Mar 2011 Location: I don't know 05-09-2011, 10: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
 Thank you, (plus a cont. link)
george3356
Guest

Status:
Posts: n/a
Thank you, (plus a cont. link) - 05-09-2011, 11:50 PM

Quote:
 Originally Posted by ieges 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.

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

 Thread Tools Display Modes Linear Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops General Discussion     Questions and Comments     The Lounge