# Game development Problem

**URL:** <https://forum.makecode.com/t/game-development-problem/40840>\
**Category:** Arcade\
**Created:** [December 8, 2025, 6:11pm UTC](https://forum.makecode.com/t/game-development-problem/40840 "2025-12-08T18:11:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sats2](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@sats2](https://forum.makecode.com/u/sats2)\
**Post date:** [December 8, 2025, 6:11pm UTC](https://forum.makecode.com/t/game-development-problem/40840/1 "2025-12-08T18:11:16Z")

</div>

So I’m making this game where some enemies will go bye you and you can shoot them to get points. After you get a specific number of points I want all of the enemies on screen to disappear so I can let the big boss of the game arrive. Can any of you guys help me get rid of the enemies?

Here’s my code if anybody wants to look.

[https://arcade.makecode.com/S52316-11352-35928-14172](https://arcade.makecode.com/S52316-11352-35928-14172)

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [December 8, 2025, 11:48pm UTC](https://forum.makecode.com/t/game-development-problem/40840/2 "2025-12-08T23:48:40Z")

</div>

This block can do that! 🙂  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/9/a/9a562482714fb63c5b76f296ce60aa37ca459f42.png)

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [December 8, 2025, 11:49pm UTC](https://forum.makecode.com/t/game-development-problem/40840/3 "2025-12-08T23:49:25Z")

</div>

A simple solution would be something like this:

 ![IMG_0964](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/0/0/000d937ae56d5cf8324fd98fa35e25e82a0661c2.jpeg)  
Where you simply turn the “spawnBadguys” variable to “false” and it will stop spawning them. You can use a short delay with a pause block to make sure that the sprites are all off the screen before spawning the big bad guy, which looks better than if you simply deleted them all instantly, which you could do with a “destroy all sprites of kind [kind]” block but would look weird.

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [December 9, 2025, 12:27am UTC](https://forum.makecode.com/t/game-development-problem/40840/4 "2025-12-09T00:27:29Z")

</div>

Ohhh… you’re so right, I hadn’t even thought about how they keep spawning! 🤯 And that’s a great idea to have a delay before destroying them all! Thanks for the additions 🙂

---

<div class="post-metadata">

**Author:** ![sats2](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@sats2](https://forum.makecode.com/u/sats2)\
**Post date:** [December 9, 2025, 7:33pm UTC](https://forum.makecode.com/t/game-development-problem/40840/5 "2025-12-09T19:33:52Z")

</div>

Thx a lot, that’s really helpful 🙂
