Alice Community random movement

 random movement
 llarinb Guest   Status: Posts: n/a 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
DickBaldwin
Guest

Status:
Posts: n/a
11-29-2007, 01:32 PM

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

 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     Alice Player and VR General Discussion     Questions and Comments     The Lounge