# Sim error: falied cast on null

**URL:** <https://forum.makecode.com/t/sim-error-falied-cast-on-null/26765>\
**Category:** Help\
**Tags:** game\
**Created:** [February 9, 2024, 6:23pm UTC](https://forum.makecode.com/t/sim-error-falied-cast-on-null/26765 "2024-02-09T18:23:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aara](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@Aara](https://forum.makecode.com/u/Aara)\
**Post date:** [February 9, 2024, 6:23pm UTC](https://forum.makecode.com/t/sim-error-falied-cast-on-null/26765/1 "2024-02-09T18:23:31Z")

</div>

Can someone help me debbug this game? I’m trying to make an adventure game with multiple minigames in the story

---

<div class="post-metadata">

**Author:** ![MakeCode](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@MakeCode](https://forum.makecode.com/u/MakeCode)\
**Post date:** [February 9, 2024, 6:24pm UTC](https://forum.makecode.com/t/sim-error-falied-cast-on-null/26765/2 "2024-02-09T18:24:03Z")

</div>

We would love to help. Can you grab the share link from the share button in the upper-right-hand corner?

---

<div class="post-metadata">

**Author:** ![Mega0star01](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mega0star01/32/14784_2.png) [@Mega0star01](https://forum.makecode.com/u/Mega0star01)\
**Post date:** [February 9, 2024, 9:45pm UTC](https://forum.makecode.com/t/sim-error-falied-cast-on-null/26765/3 "2024-02-09T21:45:38Z")

</div>

you probably tried to do something with a sprite (like putting it in a position) before actually creating the sprite. Also welcome to the makecode arcade forums, here we post games, help other coders, do collabs and more.
