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
I couldn't find anything about this. I tried comma separated numbers but it doesn't accept it.
You can do this in a loop, for example to set layers from 5 to 10 invisible:
For "n" from 5 to 10 : Set layer looopindex invisible
Develop games in your browser. Powerful, performant & highly capable.
Thanks! What does 'n' do/mean though?
It's a name of the loop index variable. In case you have multiple nested loops you can access each loopindex using loopindex("name"). For example:
For "a" from 1 to 5
..For "b" from 1 to 10
....Create object at x=(loopindex("b")*60), y=(loopindex("a")*40)
I used "n" and it works perfectly. Just needed that simple loop. Thank so much!