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
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
Let's say I have a game with a hero, and multiples ennemies with the line of sight behavior. I want to trigger an event when all the ennemies can't see the hero. All of them.
Is there an easy way to achieve that ?
There must be an easier way but..
system every tick - set Globalvariable = enemy.count
for each enemy
enemy has not line of sight - subtract 1 from GlobalVariable
system compare two values - GlobalVariable = 0
Develop games in your browser. Powerful, performant & highly capable.
Thank you very much. It works fine !