Help with counting the number of enemies killed

I’m creating a simple platformer for school and I was wondering if there was a way to reach the next level if all enemies are dead.

1 Like

You can use this code:
and the change level by 1 only happens if all enemies are killed. Also welcome to the Makecode community!

This would be a bit more efficient:

Same result, though! Good work!

1 Like

Thanks :slight_smile: