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.
It's because there are no Enemies left to overlap, so the event can't run. Add an Else EnemiesLeft=0.
Develop games in your browser. Powerful, performant & highly capable.
The enemy remaining is the instance 0 of your enemy.
You can do an action that
On Start Layout: destroy enemy