View Single Post
Mr Kidnapper
Senior Member
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 05-25-2012, 02:41 AM

Well if you searched the forum and my posts I had actually answered in detail how to do this assignment.

But I'm too lazy to do that myself so I'll keep it simple.
You know how to make a random number right?
All of Alice's units are in percent-decimal so remember to convert it if you use radians or degrees.
For All Together is what you're looking for. It's a loop function for arrays that does it for all items at the same time.
Create random number. It's somewhere in the World's functions. You'll probably be able to figure out what the maximum and minimum number you have to generate is. Keep in mind that if you create this random number in the For All Together, it will be different for each element in the array. If you want it to be the same, then you need to create it outside of the For All Together as a variable.
You can use this same method for turning as well as distance moved.
Reply With Quote