Alice Community  

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

Reply
 
Thread Tools Display Modes
Old
reuben2011
Senior Member
 
reuben2011's Avatar
 
Status: Offline
Posts: 489
Join Date: Sep 2009
Location: Hawaii
Default 04-01-2011, 06:02 PM

ok, let us know if you need anymore help.


Projects
-Escape the Kitchen
-That ninja animation
-Hill Collision

Upcoming Projects
-Some penguin adventure game?
   
Reply With Quote
Old
TheWhiteGuy
Guest
 
Status:
Posts: n/a
Default 04-07-2011, 11:46 AM

ok so i need some help how do i say a command for a whole group of something and not just one thing in the group?
   
Reply With Quote
Old
reuben2011
Senior Member
 
reuben2011's Avatar
 
Status: Offline
Posts: 489
Join Date: Sep 2009
Location: Hawaii
Default 04-07-2011, 06:26 PM

Put the all the objects you want to do stuff to, inside of a object list. To make a list, create a new world level variable and click the list checkbox. Now drag the "for all together" statement (where the "if" and other statements are) and drag it in. Now drag your list variable into the empty space in the "for all together"'s parameter. There should be something that appears like "item_from_list" in the for statement. Drag that in the "for all together" statement to refer to all objects in the list. If you want, I can post an example world if you don't understand.


Projects
-Escape the Kitchen
-That ninja animation
-Hill Collision

Upcoming Projects
-Some penguin adventure game?
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 04-07-2011, 10:28 PM

i would like to see your example so i could get a better understanding.


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Old
TheWhiteGuy
Guest
 
Status:
Posts: n/a
Default 04-12-2011, 11:26 AM

Quote:
Originally Posted by reuben2011 View Post
Put the all the objects you want to do stuff to, inside of a object list. To make a list, create a new world level variable and click the list checkbox. Now drag the "for all together" statement (where the "if" and other statements are) and drag it in. Now drag your list variable into the empty space in the "for all together"'s parameter. There should be something that appears like "item_from_list" in the for statement. Drag that in the "for all together" statement to refer to all objects in the list. If you want, I can post an example world if you don't understand.
ok thank you this really does help
   
Reply With Quote
Old
reuben2011
Senior Member
 
reuben2011's Avatar
 
Status: Offline
Posts: 489
Join Date: Sep 2009
Location: Hawaii
Default 04-12-2011, 06:35 PM

Quote:
Originally Posted by sfunk View Post
i would like to see your example so i could get a better understanding.
Ok. See the attached world. Let me know if you need help understanding how I got certain functions, methods, keywords, etc.

@TheWhiteGuy: No prob. Glad I could help!
Attached Files
File Type: a2w example.a2w (1.35 MB, 21 views)


Projects
-Escape the Kitchen
-That ninja animation
-Hill Collision

Upcoming Projects
-Some penguin adventure game?
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 04-12-2011, 08:06 PM

Quote:
Originally Posted by reuben2011 View Post
Ok. See the attached world. Let me know if you need help understanding how I got certain functions, methods, keywords, etc.

@TheWhiteGuy: No prob. Glad I could help!
I can't believe i couldn't figure that out on my own haha, i always thought it worked like variables where it would do objects in a sequence based off of value, but obviously duh on my part


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Old
TheWhiteGuy
Guest
 
Status:
Posts: n/a
Default 04-13-2011, 11:20 AM

lol the example just looks weird but i understand and thank you
   
Reply With Quote
Old
reuben2011
Senior Member
 
reuben2011's Avatar
 
Status: Offline
Posts: 489
Join Date: Sep 2009
Location: Hawaii
Default 04-14-2011, 11:53 AM

Ok, so both of you (sfunk and thewhiteguy) get it now, right? There is a whole bunch of things you can do with lists and it's not just limited to object lists. You can have number lists, string lists, etc. If you are having difficulty doing something, try to ask yourself, "will a list help me?" I'll be glad to help you guys if you guys have any more questions on lists.


Projects
-Escape the Kitchen
-That ninja animation
-Hill Collision

Upcoming Projects
-Some penguin adventure game?
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 04-14-2011, 02:06 PM

Quote:
Originally Posted by reuben2011 View Post
Ok, so both of you (sfunk and thewhiteguy) get it now, right? There is a whole bunch of things you can do with lists and it's not just limited to object lists. You can have number lists, string lists, etc. If you are having difficulty doing something, try to ask yourself, "will a list help me?" I'll be glad to help you guys if you guys have any more questions on lists.
yes i understand it now, thank you


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.