Is it possible to name a loop using a variable?
Something like:
loopName = "the_loop" for loopName from 1 to 100 -> set object.X to loopindex(loopName)[/code:1g5ri6gq] The problem here is that "loopindex(loopName)" is not accepted as a valid expression, even though "for loopName from 1 to 100" is possible [b]----- EDIT: [/b] Figured it out. Using str() on the variable name forces the expression to be accepted "loopindex(str(loopName))"
Develop games in your browser. Powerful, performant & highly capable.
Thanks for posting your solution 7soul, I was trying to figure that out too.