Alice Community  

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

Reply
 
Thread Tools Display Modes
How do I have a list randomly move together?
Old
aliceguyyowat
Guest
 
Status:
Posts: n/a
Default How do I have a list randomly move together? - 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.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 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.


(')>
   
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 ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.