Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
Hello All,
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
Haroon Shishani
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.