# Help with game

**URL:** <https://forum.makecode.com/t/help-with-game/5415>\
**Category:** Help\
**Created:** [January 8, 2021, 4:30am UTC](https://forum.makecode.com/t/help-with-game/5415 "2021-01-08T04:30:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaaaaaaa](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@aaaaaaaa](https://forum.makecode.com/u/aaaaaaaa)\
**Post date:** [January 8, 2021, 4:30am UTC](https://forum.makecode.com/t/help-with-game/5415/1 "2021-01-08T04:30:42Z")

</div>

i have a game that uses random mechanics, and while i have finished it, it keeps on crashing. Can someone help me find out what exactly is breaking?

> **[e](https://arcade.makecode.com/82594-04610-74685-28019)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)\
**Post date:** [January 8, 2021, 4:57pm UTC](https://forum.makecode.com/t/help-with-game/5415/2 "2021-01-08T16:57:56Z")

</div>

Ok! Problem solved! I changed some stuff! Basically stuff withh taking damage and so on! Also the follow blocks were wrong! You set the sprite House and set myenemy to follow me! but you had to set the myenemy thing to sprite house! Also I changed the bullets! I set ammo to 10 and made it so that it is not a projectile because when I pressed A a projectile appeared on me and projectiles hurt me! So I set it to a sprite and set position and velocity! Here you go!

> **[e](https://arcade.makecode.com/13777-43040-96030-93242)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)\
**Post date:** [January 8, 2021, 4:58pm UTC](https://forum.makecode.com/t/help-with-game/5415/3 "2021-01-08T16:58:18Z")

</div>

Well… I know this seems to be your first game but there is some issues! First! You don’t have to do this! ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/1/1ca7fb8a5eeb47a6e9c971a31a6d54702462e8d5.png)  
It works also like this! ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/c3837273ff98c9bda63d05f74ae66697caf816fd.png)  
So I fugured out the bug by using the Debugmode! If it is active and a error appears it shows you the block that makes that error! The error is the stuff with the overlaps! Because that is the first thing done and there is no sprites yet! So it means that you are trying something for a non existing sprite! You would have to do a unlock variable for all of them… but I will do that for you! I will be done soon!
