# Help. My game is not working

**URL:** <https://forum.makecode.com/t/help-my-game-is-not-working/40407>\
**Category:** Help\
**Tags:** game\
**Created:** [November 12, 2025, 2:14pm UTC](https://forum.makecode.com/t/help-my-game-is-not-working/40407 "2025-11-12T14:14:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgaurons-pixel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sgaurons-pixel/32/29100_2.png) [@sgaurons-pixel](https://forum.makecode.com/u/sgaurons-pixel)\
**Post date:** [November 12, 2025, 2:14pm UTC](https://forum.makecode.com/t/help-my-game-is-not-working/40407/1 "2025-11-12T14:14:44Z")

</div>

Hello as you can see in the title my game is not working. I think it is because one of the sprites are not named and one sprite/ variable does not have cell structure (however I am not sure). Please help me this is my link to my game [https://arcade.makecode.com/S85430-07680-73351-99430](https://arcade.makecode.com/S85430-07680-73351-99430). (Extra you do not have to do this!) My game has some bugs with walking into walls, and I do not know why if you could please fix that would be awesome.

---

<div class="post-metadata">

**Author:** ![RoboVacDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robovacdev/32/29619_2.png) [@RoboVacDev](https://forum.makecode.com/u/RoboVacDev)\
**Post date:** [November 12, 2025, 5:59pm UTC](https://forum.makecode.com/t/help-my-game-is-not-working/40407/2 "2025-11-12T17:59:01Z")

</div>

Hey, @sgaurons-pixel! Welcome to the community.

> [@sgaurons-pixel](#):
>
> I think it is because one of the sprites is not named and one sprite/variable does not have a cell structure

That may be the problem, or you just didn’t add a title to the function.

---

<div class="post-metadata">

**Author:** ![sgaurons-pixel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sgaurons-pixel/32/29100_2.png) [@sgaurons-pixel](https://forum.makecode.com/u/sgaurons-pixel)\
**Post date:** [November 12, 2025, 9:01pm UTC](https://forum.makecode.com/t/help-my-game-is-not-working/40407/3 "2025-11-12T21:01:03Z")

</div>

Omg I did not even know if my post was going to get any traction thank you so much RoboVacDev!

---

<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:** [November 12, 2025, 9:57pm UTC](https://forum.makecode.com/t/help-my-game-is-not-working/40407/4 "2025-11-12T21:57:54Z")

</div>

Using Debug Mode, I can see that the error is here:

 ![Screenshot 2025-11-12 at 1.56.11 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/2/9/2932bce3b159fab8bc0135ed6c4c5be41c09e7fa.png)  
You can enter debug mode using the little beetle icon button under the simulator.  
 ![Screenshot 2025-11-12 at 4.43.54 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/0/d/0d3e65678b1dd149ea1b22e4a7260688a60984c8.png)

This error means that either “mySprite2” or “mySprite3” doesn’t exist when this function is called.  
Looking at your tilemap, I can see that there are no red tiles in your tilemap, which means no "mySprite2"s will be created, which causes the error.

Then I went about fixing other issues…

I moved this code into a forever block, which makes more sense:

 ![Screenshot 2025-11-12 at 4.23.45 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/c/8cc1c4ed4936fa293f3ccdea99150c7178014dc8.png)

I see that your guard is getting stuck on the left wall now. You can fix this with the sprite ghost through walls flag, or by changing the level geometry.

Then I fixed your status bar… mess…

 ![Screenshot 2025-11-12 at 4.35.02 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/3/a33b0b34715244b91a0eb186d5b95d1121f711b9.png)  
Then I realized that you probably wanted to stop the timer when the player’s health is below a certain amount, so I changed it to this:  
 ![Screenshot 2025-11-12 at 4.40.14 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/b/7/b70e28c569235eee5b4ed02b286407e2cd9e1237.png)  
Also, you can replace all those status bar detection blocks with something like this:  
 ![Screenshot 2025-11-12 at 4.42.22 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/1/e/1ea85928e13392b8808be4865fd7eb02f8dd6993.png)

Here is my version of the project:

> **[ghost steal](https://arcade.makecode.com/S95026-46606-14007-44721)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![sgaurons-pixel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sgaurons-pixel/32/29100_2.png) [@sgaurons-pixel](https://forum.makecode.com/u/sgaurons-pixel)\
**Post date:** [November 14, 2025, 3:42am UTC](https://forum.makecode.com/t/help-my-game-is-not-working/40407/5 "2025-11-14T03:42:56Z")

</div>

Thank you so much for this fixed version. Woof Woof
