Alice Community  

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

Reply
 
Thread Tools Display Modes
how to +/- the index in a "for all in order"
Old
gypsy fly
Guest
 
Status:
Posts: n/a
Default how to +/- the index in a "for all in order" - 06-01-2010, 05:33 PM

It would be nice to do a "wave" by a row of fairies such that the currently indexed object in a "for all in order" is at the "crest" of the "wave" while those besides to the left and right are at the ebb and start of the "wave".

Say a call to the method "standUpWave" uses index, then "sitDown" would need index-1 and "startWave" is called with index+1. Or, startWave uses index while index-1 and index-2 call on "standUpWave" and "sitDown", respectively.

How is the index in a "for all in order" accessed?
   
Reply With Quote
Old
Niteshifter
Guest
 
Status:
Posts: n/a
Default 06-01-2010, 05:42 PM

It's not accessed. You have to use the loop command and manually make the iterator yourself to access the index.
   
Reply With Quote
Old
gypsy fly
Guest
 
Status:
Posts: n/a
Default 06-02-2010, 12:30 PM

I thought so .... oh, well!
   
Reply With Quote
Reply


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.