Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   repeating a section of a method with a parameter? (http://www.alice.org/community/showthread.php?t=3987)

yessir 02-26-2010 02:17 PM

repeating a section of a method with a parameter?
 
So I have this walking method for one of the fairy characters, and its broken into three major sections - the beginning of the walk (which opens the legs), the continued walk (the part i want to loop), and the end of the walk (which brings the legs back together). I don't want to break this method up into three separate methods, so i was wondering if there was some way i could just loop one SECTION of this method with a parameter, so when later in the animation i want to change how far or how long the character walks i can change the amount of times her steps are looped with the parameter from the "my world first method".

zonedabone 02-26-2010 08:22 PM

Sure! Create a number parameter, naming it what you want. Now drag that parameter into the loop where it asks how many time to loop. PRESTO! All done!


All times are GMT -5. The time now is 10:08 PM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.