# Is this a makecode bug?

**URL:** <https://forum.makecode.com/t/is-this-a-makecode-bug/6655>\
**Category:** Help\
**Created:** [March 9, 2021, 6:37pm UTC](https://forum.makecode.com/t/is-this-a-makecode-bug/6655 "2021-03-09T18:37:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [March 9, 2021, 6:37pm UTC](https://forum.makecode.com/t/is-this-a-makecode-bug/6655/1 "2021-03-09T18:37:20Z")

</div>

Expected behavior:  
The big asteroid when broken should explode into 5 smaller asteroids  
Actual behavior:  
The small asteroids spawn on a random big asteroid when directed to do so on the one that was broken.  
@richard?

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [March 9, 2021, 7:40pm UTC](https://forum.makecode.com/t/is-this-a-makecode-bug/6655/2 "2021-03-09T19:40:48Z")

</div>

Well at least it is a fun game!  
I made it to level 51  
(Auto laser deactivates that level for a harder twist (unintentional bug but I kept it.).)

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [March 9, 2021, 7:42pm UTC](https://forum.makecode.com/t/is-this-a-makecode-bug/6655/3 "2021-03-09T19:42:09Z")

</div>

Now that I see, the on destroyed and on created events are acting opposite for some reason…

---

<div class="post-metadata">

**Author:** ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)\
**Post date:** [March 9, 2021, 7:42pm UTC](https://forum.makecode.com/t/is-this-a-makecode-bug/6655/4 "2021-03-09T19:42:13Z")

</div>

Can you share the code?

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [March 9, 2021, 7:42pm UTC](https://forum.makecode.com/t/is-this-a-makecode-bug/6655/5 "2021-03-09T19:42:18Z")

</div>

Linky? Usually it’s the programmer’s game logic that’s broken (Especially my logic) 😉

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [March 9, 2021, 7:43pm UTC](https://forum.makecode.com/t/is-this-a-makecode-bug/6655/6 "2021-03-09T19:43:27Z")

</div>

Here is the latest version. so far I only have donkey kong, asteroids, and space galaga

> **[Arcade Game Game Mash Up](https://arcade.makecode.com/52963-58148-15372-56102)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [March 9, 2021, 8:17pm UTC](https://forum.makecode.com/t/is-this-a-makecode-bug/6655/7 "2021-03-09T20:17:49Z")

</div>

> [@GameGod](#):
>
> Can you share the code?

> [@UnsignedArduino](#):
>
> Linky? Usually it’s the programmer’s game logic that’s broken (Especially my logic) 😉

Sorry I forgot the link…
