# How do i make waves?

**URL:** <https://discourse.codecombat.com/t/how-do-i-make-waves/30907>\
**Category:** Adventurer\
**Created:** [October 10, 2021, 2:46pm UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907 "2021-10-10T14:46:41Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheddarcheese](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/cheddarcheese/32/22417_2.png) [@cheddarcheese](https://discourse.codecombat.com/u/cheddarcheese)\
**Post date:** [October 10, 2021, 2:46pm UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907/1 "2021-10-10T14:46:42Z")

</div>

well i have a problem i want to put waves of enemies and friendlies in my level  
but when I use the invisible things it doesn’t work can someone help me?  
link:

> **[CodeCombat - Coding games to learn Python and JavaScript](https://codecombat.com/editor/level/mountain-siege)**
>
> Learn typed code through a programming game. Learn Python, JavaScript, and HTML as you solve puzzles and learn to make your own coding games and websites.

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [October 10, 2021, 2:47pm UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907/2 "2021-10-10T14:47:34Z")

</div>

I have a question, what do you use to spawn things in the level editor? `game.spawnXY(type, x, y)` or something else?

---

<div class="post-metadata">

**Author:** ![cheddarcheese](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/cheddarcheese/32/22417_2.png) [@cheddarcheese](https://discourse.codecombat.com/u/cheddarcheese)\
**Post date:** [October 10, 2021, 2:47pm UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907/3 "2021-10-10T14:47:52Z")

</div>

no its the mountain siege level

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [October 10, 2021, 2:48pm UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907/4 "2021-10-10T14:48:29Z")

</div>

Yes, but when you are in the level editor, when you want to spawn something at a specific time in the game, what do you use? If you can tell me this, I will probably be able to help.

---

<div class="post-metadata">

**Author:** ![cheddarcheese](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/cheddarcheese/32/22417_2.png) [@cheddarcheese](https://discourse.codecombat.com/u/cheddarcheese)\
**Post date:** [October 10, 2021, 2:49pm UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907/5 "2021-10-10T14:49:57Z")

</div>

hmm im not sure maybe you could use:

```python
if time =< 30:
    game.spawnXY(type, x, y)

```

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [October 10, 2021, 2:50pm UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907/6 "2021-10-10T14:50:56Z")

</div>

So you DO use `game.spawnXY(type, x, y)` to spawn things at a certain time in the level editor?

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [October 10, 2021, 2:57pm UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907/7 "2021-10-10T14:57:14Z")

</div>

Maybe you could use a wave engine?

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [October 10, 2021, 2:57pm UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907/8 "2021-10-10T14:57:33Z")

</div>

Wait, can you use Javascript?

---

<div class="post-metadata">

**Author:** ![Rabbit](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/rabbit/32/25831_2.png) [@Rabbit](https://discourse.codecombat.com/u/Rabbit)\
**Post date:** [October 11, 2021, 7:04am UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907/9 "2021-10-11T07:04:02Z")

</div>

Use a referee to make waves @cheddarcheese

---

<div class="post-metadata">

**Author:** ![cheddarcheese](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/cheddarcheese/32/22417_2.png) [@cheddarcheese](https://discourse.codecombat.com/u/cheddarcheese)\
**Post date:** [October 11, 2021, 7:10pm UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907/10 "2021-10-11T19:10:43Z")

</div>

i know but how exactly? @Chaboi_3000

---

<div class="post-metadata">

**Author:** ![Hin\_Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/hin_lee/32/20147_2.png) [@Hin\_Lee](https://discourse.codecombat.com/u/Hin_Lee)\
**Post date:** [October 11, 2021, 9:06pm UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907/11 "2021-10-11T21:06:51Z")

</div>

Use @instabuild(thing, x, y)

---

<div class="post-metadata">

**Author:** ![Rabbit](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/rabbit/32/25831_2.png) [@Rabbit](https://discourse.codecombat.com/u/Rabbit)\
**Post date:** [October 11, 2021, 11:11pm UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907/12 "2021-10-11T23:11:41Z")

</div>

@cheddarcheese your invisible things are wells, not referee. wells are for decoration

---

<div class="post-metadata">

**Author:** ![cheddarcheese](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/cheddarcheese/32/22417_2.png) [@cheddarcheese](https://discourse.codecombat.com/u/cheddarcheese)\
**Post date:** [October 12, 2021, 12:15am UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907/13 "2021-10-12T00:15:31Z")

</div>

no im adding the wells for decoration I haven’t added the referee yet I’m just asking how to make it spawn waves of enemies and friends

---

<div class="post-metadata">

**Author:** ![Rabbit](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/rabbit/32/25831_2.png) [@Rabbit](https://discourse.codecombat.com/u/Rabbit)\
**Post date:** [October 12, 2021, 8:20am UTC](https://discourse.codecombat.com/t/how-do-i-make-waves/30907/14 "2021-10-12T08:20:00Z")

</div>

Maybe add the component `AI.programmable`
