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've got this basic sprite that will detect how many enemies are left on a level. To test it I have put added an instance variable that is linked to the PickedCount expression. It works until it gets to the last enemy and the variable gets stuck on 1, even when the last enemy has been destroyed and I have no idea why.
Develop games in your browser. Powerful, performant & highly capable.
It's because there are no Enemies left to overlap, so the event can't run. Add an Else EnemiesLeft=0.
The enemy remaining is the instance 0 of your enemy.
You can do an action that
On Start Layout: destroy enemy