View Single Post
How to loop these
Old
djslater107
Administrator
 
Status: Offline
Posts: 190
Join Date: Jan 2007
Default How to loop these - 03-29-2013, 07:48 AM

Add a set of objects that you would like to appear randomly... Then create an array, not a list, loading all of the objects into the array... Then generate a random number that is within the range 0 <= index < number of objects in the array (in other words, if you have 10 objects in the array, the random number should be in the range {0 .. 9}). That random number then becomes the index value of the array, and you can then place the object at ary[index] into the scene appropriately.)

Hope this helps.


Don Slater
Alice Team
Carnegie Mellon University
   
Reply With Quote