Alice Community  

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

Reply
 
Thread Tools Display Modes
On list: all objects do the same thing
Old
InsertName
Senior Member
 
InsertName's Avatar
 
Status: Offline
Posts: 341
Join Date: Jun 2011
Location: In a house
Default On list: all objects do the same thing - 07-05-2011, 06:45 PM

This may sound dumb, but how to I make it so that if any object on x list something is true comes up. Instead of using random on list if?


__№_₤⅞__
Handguns: http://www.alice.org/community/showthread.php?p=45349
MINECRAFT IN ALICE: http://alice.org/community/showthread.php?p=48208
My Stupid Animations: http://alice.org/community/album.php?albumid=119
   
Reply With Quote
Old
ElectricKirby
Senior Member
 
ElectricKirby's Avatar
 
Status: Offline
Posts: 164
Join Date: May 2011
Location: Dreamland, Planet Popstar
Default 07-05-2011, 06:56 PM

In the bottom part of the editing window, there is a control frame called "For All Together." When you drag that into a method, it will ask you to make a list or select an existing one. For All Together makes all objects in that list do the same thing at the same time.


My Favorite Resources:
Uploading Images - http://tinypic.com/

File Sharing - http://www.4shared.com/

Textures - http://www.filterforge.com/

Convertible Game-Ripped Models - http://models-resource.com/

Music - http://www.brawlcustommusic.com/gamelist
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 07-05-2011, 08:51 PM

Are you sure that's what he means? I rather thought he was thinking of something like this:

Code:
Loop (size of list) times
{
     if (object (insert number parameter here, starting at 0) from list) (condition)
            (What you want it to do if true)
     else
            Do nothing
     Increment (Your number parameter) by 1
}
Number parameter set value to 0


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
Reply With Quote
Old
ElectricKirby
Senior Member
 
ElectricKirby's Avatar
 
Status: Offline
Posts: 164
Join Date: May 2011
Location: Dreamland, Planet Popstar
Default 07-05-2011, 09:49 PM

Quote:
Originally Posted by TauTrumpsPi View Post
Are you sure that's what he means? I rather thought he was thinking of something like this:

Code:
Loop (size of list) times
{
     if (object (insert number parameter here, starting at 0) from list) (condition)
            (What you want it to do if true)
     else
            Do nothing
     Increment (Your number parameter) by 1
}
Number parameter set value to 0
A "For All In Order" structure does the same as this. It's found next to the "For All Together", and has the same basic setup. It makes all objects in a list perform an action, but one at a time, going down the list.


My Favorite Resources:
Uploading Images - http://tinypic.com/

File Sharing - http://www.4shared.com/

Textures - http://www.filterforge.com/

Convertible Game-Ripped Models - http://models-resource.com/

Music - http://www.brawlcustommusic.com/gamelist
   
Reply With Quote
Old
InsertName
Senior Member
 
InsertName's Avatar
 
Status: Offline
Posts: 341
Join Date: Jun 2011
Location: In a house
Default 07-06-2011, 09:32 AM

forget about this post here it was a mistake, look at the next one


__№_₤⅞__
Handguns: http://www.alice.org/community/showthread.php?p=45349
MINECRAFT IN ALICE: http://alice.org/community/showthread.php?p=48208
My Stupid Animations: http://alice.org/community/album.php?albumid=119
   
Reply With Quote
Old
InsertName
Senior Member
 
InsertName's Avatar
 
Status: Offline
Posts: 341
Join Date: Jun 2011
Location: In a house
Default 07-06-2011, 09:33 AM

Quote:
Originally Posted by ElectricKirby View Post
In the bottom part of the editing window, there is a control frame called "For All Together."
I feel dumb now, thanks both of you for the clarification.


__№_₤⅞__
Handguns: http://www.alice.org/community/showthread.php?p=45349
MINECRAFT IN ALICE: http://alice.org/community/showthread.php?p=48208
My Stupid Animations: http://alice.org/community/album.php?albumid=119
   
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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.