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 wonder if there is a way to use foreach to loop through all spirits in a specific layer whereas the spirits are not the same type. Currently the foreach that I see in Construct2 allows me only to loop through a specific object.
Thanks in advance
Develop games in your browser. Powerful, performant & highly capable.
Yes, for each will work only for specific objects. You can loop through object on specific layer using "Is on layer" condition.
If you can tell what you exactly need loop with different objects to do, then we could try to sort this out.