# Stage to Enemy Quere

**URL:** <https://forum.makecode.com/t/stage-to-enemy-quere/28623>\
**Category:** Help\
**Created:** [May 6, 2024, 8:42pm UTC](https://forum.makecode.com/t/stage-to-enemy-quere/28623 "2024-05-06T20:42:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![top\_hat\_lord](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/top_hat_lord/32/33469_2.png) [@top\_hat\_lord](https://forum.makecode.com/u/top_hat_lord)\
**Post date:** [May 6, 2024, 8:42pm UTC](https://forum.makecode.com/t/stage-to-enemy-quere/28623/1 "2024-05-06T20:42:32Z")

</div>

Hello, I am a new person to “makecode arcade” and need some assistance with a query. you see im making a game and a enemy I am making is making the game glitch. you see I want the enemy to move side to side, but I can not make it do that when it does not exist in some levels, causing the game to glitch as I am telling it to do a ation with something that is yet to be manufactured. I usually do not have a account but desperate times call for more direct measure’s. can anyone help me with this?

---

<div class="post-metadata">

**Author:** ![InvalidProject](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/invalidproject/32/32554_2.png) [@InvalidProject](https://forum.makecode.com/u/InvalidProject)\
**Post date:** [May 8, 2024, 6:29pm UTC](https://forum.makecode.com/t/stage-to-enemy-quere/28623/2 "2024-05-08T18:29:48Z")

</div>

Could you show us your project?

---

<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:** [May 8, 2024, 11:47pm UTC](https://forum.makecode.com/t/stage-to-enemy-quere/28623/3 "2024-05-08T23:47:21Z")

</div>

Hi! This is a pretty common problem. The best way prevent this is to add a check like “For (sprite) of kind (enemy)” around your back-and-forth code. This makes it so that if there aren’t any sprites of that type, the code inside doesn’t run, and if there are, the code runs for all of them! One downside is that if there are multiple types of enemies and you only want the code to run on one type, you have to check for that type specifically by checking some other way, or you have to make the enemies different types, which would require you to copy any player-enemy collision code for the every type of enemy.

---

<div class="post-metadata">

**Author:** ![top\_hat\_lord](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/top_hat_lord/32/33469_2.png) [@top\_hat\_lord](https://forum.makecode.com/u/top_hat_lord)\
**Post date:** [May 12, 2024, 9:48pm UTC](https://forum.makecode.com/t/stage-to-enemy-quere/28623/4 "2024-05-12T21:48:37Z")

</div>

thank you woof woof for helping, I am thankful for you help. sadly, due to moderators being a little slow, I already just worked around this and made it so the game does not need enemies, although I will use this later. thank you.

---

<div class="post-metadata">

**Author:** ![top\_hat\_lord](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/top_hat_lord/32/33469_2.png) [@top\_hat\_lord](https://forum.makecode.com/u/top_hat_lord)\
**Post date:** [May 21, 2024, 4:00pm UTC](https://forum.makecode.com/t/stage-to-enemy-quere/28623/5 "2024-05-21T16:00:07Z")

</div>

hello again. so I’ve gotten to a point where I wish to make moving platforms. I’ve seen it been done in another project someone made but I can’t make out whatsoever how to do what they did. could someone help? my game mentioned is listed below.

> **[I-e-c-d Adventure](https://arcade.makecode.com/S16855-88040-93019-47277)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

the moving platform is in the moving platform function if you can’t find it.

---

<div class="post-metadata">

**Author:** ![InvalidProject](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/invalidproject/32/32554_2.png) [@InvalidProject](https://forum.makecode.com/u/InvalidProject)\
**Post date:** [May 22, 2024, 3:26am UTC](https://forum.makecode.com/t/stage-to-enemy-quere/28623/6 "2024-05-22T03:26:30Z")

</div>

I love the game so far! The puzzle and movement is super fun!

---

<div class="post-metadata">

**Author:** ![top\_hat\_lord](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/top_hat_lord/32/33469_2.png) [@top\_hat\_lord](https://forum.makecode.com/u/top_hat_lord)\
**Post date:** [May 22, 2024, 4:36pm UTC](https://forum.makecode.com/t/stage-to-enemy-quere/28623/7 "2024-05-22T16:36:34Z")

</div>

thanks. I’m also thinking of adding a story, but note not much else will come out until the sequel, mostly because I need to add enemies and moving platforms to every level to not have the game break. thanks for the support!

---

<div class="post-metadata">

**Author:** ![top\_hat\_lord](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/top_hat_lord/32/33469_2.png) [@top\_hat\_lord](https://forum.makecode.com/u/top_hat_lord)\
**Post date:** [May 22, 2024, 5:14pm UTC](https://forum.makecode.com/t/stage-to-enemy-quere/28623/8 "2024-05-22T17:14:41Z")

</div>

finished the first game! anything new will be part of the sequel!

---

<div class="post-metadata">

**Author:** ![top\_hat\_lord](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/top_hat_lord/32/33469_2.png) [@top\_hat\_lord](https://forum.makecode.com/u/top_hat_lord)\
**Post date:** [March 6, 2025, 1:28pm UTC](https://forum.makecode.com/t/stage-to-enemy-quere/28623/9 "2025-03-06T13:28:02Z")

</div>

hey, to anyone who’s finds this post, the game kind of broke down due to glitches and me working with the wrong links and deleting the original ones. Long story short,dont try to find this game. Sorry folks. ☹

---

<div class="post-metadata">

**Author:** ![InvalidProject](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/invalidproject/32/32554_2.png) [@InvalidProject](https://forum.makecode.com/u/InvalidProject)\
**Post date:** [March 7, 2025, 7:39pm UTC](https://forum.makecode.com/t/stage-to-enemy-quere/28623/10 "2025-03-07T19:39:16Z")

</div>

I’m so sorry! It was a lovely game when I did play it; Maybe you can try a new game?

---

<div class="post-metadata">

**Author:** ![top\_hat\_lord](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/top_hat_lord/32/33469_2.png) [@top\_hat\_lord](https://forum.makecode.com/u/top_hat_lord)\
**Post date:** [March 14, 2025, 5:28pm UTC](https://forum.makecode.com/t/stage-to-enemy-quere/28623/11 "2025-03-14T17:28:11Z")

</div>

maybe, but I am also **taking a creative break** from Makecode before I start working on projects again, **so I’m not doing anything big**. although, I will see what I can do, sense honestly a bunch of the stuff in this game was very simple, and we still have **some** of the assets.

---

<div class="post-metadata">

**Author:** ![top\_hat\_lord](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/top_hat_lord/32/33469_2.png) [@top\_hat\_lord](https://forum.makecode.com/u/top_hat_lord)\
**Post date:** [March 17, 2025, 3:23am UTC](https://forum.makecode.com/t/stage-to-enemy-quere/28623/12 "2025-03-17T03:23:27Z")

</div>

okay, so I wanted to test what I could add, and although I had to delete the new unpublished version, I seem to be able to make a lot in a singular day. therefore, I will be making a remastered and finished version and attempting to post it. I will keep you informed when a new version is out. although note, it will still not be easy to make the new version, and I still may run into roadblocks and or have a bad schedule, plus other work. overall, please expect a wait like many of other projects have, although it may not be at. Big as other projects waits.

---

<div class="post-metadata">

**Author:** ![top\_hat\_lord](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/top_hat_lord/32/33469_2.png) [@top\_hat\_lord](https://forum.makecode.com/u/top_hat_lord)\
**Post date:** [March 23, 2025, 9:42pm UTC](https://forum.makecode.com/t/stage-to-enemy-quere/28623/13 "2025-03-23T21:42:09Z")

</div>

just finished a WIP version of the new game. added a few new things and may add some old/new levels. hope you guys enjoy.

> **[I-e-c-d Adventure-2.0-WIP](https://arcade.makecode.com/S02344-29817-29767-11052)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
