# Game crashing on start

**URL:** <https://forum.makecode.com/t/game-crashing-on-start/47475>\
**Category:** Help\
**Tags:** graphics-and-math\
**Created:** [November 21, 2026, 1:55am UTC](https://forum.makecode.com/t/game-crashing-on-start/47475 "2026-11-21T01:55:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Green\_Lizard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/green_lizard/32/33280_2.png) [@Green\_Lizard](https://forum.makecode.com/u/Green_Lizard)\
**Post date:** [November 21, 2026, 1:55am UTC](https://forum.makecode.com/t/game-crashing-on-start/47475/1 "2026-11-21T01:55:50Z")

</div>

sooo I just learned that the experiment I’m making crashed for others when they open the game or link. The game specificaly crashes after the text telling you the buttons. I need help since I can figure out how to fix this issue.

link:

> **[saving](https://arcade.makecode.com/S88002-80053-31729-88298)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [November 21, 2026, 9:35pm UTC](https://forum.makecode.com/t/game-crashing-on-start/47475/2 "2026-11-21T21:35:17Z")

</div>

it doesn’t crash unless I press enter. Also I’m certain you could make the E go faster. (and not that this matters, you could compress the outut into a long string, first 2 chars are the width/height, all the next are next are the colors)

---

<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 21, 2026, 9:42pm UTC](https://forum.makecode.com/t/game-crashing-on-start/47475/3 "2026-11-21T21:42:09Z")

</div>

Usually when it is crashing for others but not for you it is a settings issue. You probably have settings initialized that they do not. Try clearing the settings with the delete all block and then you can probably figure out the issue.

In this case it’s probably crashing because the 1a setting doesn’t exist and so returns undefined. You need to check if the 1a setting exists and create it in On Start if it doesn’t exist.

---

<div class="post-metadata">

**Author:** ![emilyrobinson](https://avatars.discourse-cdn.com/v4/letter/e/43a26b/32.png) [@emilyrobinson](https://forum.makecode.com/u/emilyrobinson)\
**Post date:** [November 21, 2026, 9:45pm UTC](https://forum.makecode.com/t/game-crashing-on-start/47475/4 "2026-11-21T21:45:23Z")

</div>

If it reliably crashes right after the button text, bisect that section: disable everything after the text, then re-enable in small groups until it fails. Common MakeCode Arcade culprits are indexing an array before it has items, using a sprite variable that is still null, or placing a tilemap/sprite operation before the map/sprite is created. Also check for a loop that runs during on start without a pause. Sharing the exact error or console message would make it easier to pinpoint.
