PDA

View Full Version : How do I have a list randomly move together?


aliceguyyowat
10-25-2009, 10:34 AM
I'd like to have a list where each object moves together, but in random directions. I don't want each object in the list moving at the same direction but I'd like them to be moving together.

x2495iiii
10-25-2009, 03:51 PM
You could have the normal for all together method, then have them move left and up, but in a random number direction which has a negative minimum and a positive maximum. This way, the objects may also move right or down if the number is negative, and left or up if the number is positive.