Alice Community  

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Random movement of objects in an array/index?
Old
GameBredDJ
Junior Member
 
Status: Offline
Posts: 1
Join Date: May 2012
Default Random movement of objects in an array/index? - 05-24-2012, 10:09 PM

I have a project due pretty soon and needed a bit of advice. I have to make (let's say) 5 object in an array move randomly in different directions on screen. Let's say you have 5 roaches on a page and you want all of them to move in different directions randomly, how would I go about the? I have no problem creating and adding object to an array. My problem is the random movement of each individual objects. Any help or advice would be very appreciated.

Last edited by GameBredDJ; 05-24-2012 at 10:20 PM.
   
Reply With Quote
 

Tags
array, random


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