# Help! zombie spawning problems

**URL:** https://forum.makecode.com/t/help-zombie-spawning-problems/30333
**Category:** Help
**Created:** [August 28, 2024, 12:56am UTC](https://forum.makecode.com/t/help-zombie-spawning-problems/30333 "2024-08-28T00:56:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BlueYoshi507](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blueyoshi507/32/32630_2.png) [@BlueYoshi507](https://forum.makecode.com/u/BlueYoshi507)
#### Post date: [August 28, 2024, 12:56am UTC](https://forum.makecode.com/t/help-zombie-spawning-problems/30333/1 "2024-08-28T00:56:14Z")

</div>

Well… I need help…  
I wanna make that some kind of zombies spawn the more you advance in the level. Example, at first only spawns normal ones, but after some seconds traffic cone zombies spawn too.  
CAN SOMEONE HELP ME?  
Thanks!

Link is [here](https://makecode.com/_1uVCuAMPo4Fr) if you need it  
Here’s the spawn system I have now

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/d/0/d04ce73f5b42de4ecbeba06925a989f7e7b95118.png)

---

<div class="post-metadata">

### Author: ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)
#### Post date: [August 27, 2025, 5:01pm UTC](https://forum.makecode.com/t/help-zombie-spawning-problems/30333/2 "2025-08-27T17:01:33Z")

</div>

use a for loop inside a function and spawn the enemies inside I recommend that update the parameter when it changes the wave every wave call that function and pass the argrument updated by increasing the for loop calling every time when you reach that stage.
