Alice Community  

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

Reply
 
Thread Tools Display Modes
random movement
Old
llarinb
Guest
 
Status:
Posts: n/a
Default random movement - 11-29-2007, 12:57 PM

Ok I am working with List and Arrays and i have to create a sea world with at least 5 fish. I've figured out how to get them to move together but i need them to randomly turn in different directions and i can not figure out how to do it. Any ideas? If you have the book its in chapter 7 review Exercise 1. School of Fish plz plz help i've been trying to figure it out all day
   
Reply With Quote
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default 11-29-2007, 01:32 PM

Quote:
Originally Posted by llarinb View Post
Ok I am working with List and Arrays and i have to create a sea world with at least 5 fish. I've figured out how to get them to move together but i need them to randomly turn in different directions and i can not figure out how to do it. Any ideas? If you have the book its in chapter 7 review Exercise 1. School of Fish plz plz help i've been trying to figure it out all day
See the code that controls the motion of the butterflies in the world at http://www.dickbaldwin.com/alice/Alice0930.htm#Figure_8

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free programming tutorials: http://www.dickbaldwin.com/toc.htm

Last edited by DickBaldwin; 11-29-2007 at 01:33 PM. Reason: Clarification
   
Reply With Quote
Reply

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.