Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Default 04-10-2011, 02:18 PM

I strongly do not recommend arrays. Lists are easier to work with, and have more functionality in Alice.

Say, for example, you want to have a bunch of objects do a simple task, like move forward, or turn, or appear/disappear. Make a list, and have all of the objects in the list. Then use the "For All Together" or "For All in Order" (depending if you want the objects to do the method at the same time, or in order), select the list, and place your method inside that statement.

I found this random world lying around that's an example, credit doesn't go to me though:
Attached Files
File Type: a2w airwolf.a2w (890.0 KB, 21 views)


Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.
   
Reply With Quote
 

Tags
jumping, tutorial, variable

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