Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How Do I? (http://www.alice.org/community/forumdisplay.php?f=28)
-   -   Making a parameter so moveTo can use variable along with target (http://www.alice.org/community/showthread.php?t=12193)

FlyinJoy 03-29-2019 03:34 PM

Making a parameter so moveTo can use variable along with target
 
I have 12 object markers (marker0, marker1, etc). In Method, I use the nextRandom Integer... function and put it into a variable.

I'd like to have it place this number after the string "marker", and then use it in the procedure moveTo as its target. This would replace 12 nested if loops (one for each marker) which is clumsy and slow.

Anyway to do this in Alice 3?

Thank you!


All times are GMT -5. The time now is 08:42 AM.

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