Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Is it possible to name a loop using a variable?
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
Develop games in your browser. Powerful, performant & highly capable.
Thanks for posting your solution 7soul, I was trying to figure that out too.