# Can someone help me with this?

**URL:** <https://forum.makecode.com/t/can-someone-help-me-with-this/38372>\
**Category:** Help\
**Tags:** game\
**Created:** [July 30, 2025, 11:17pm UTC](https://forum.makecode.com/t/can-someone-help-me-with-this/38372 "2025-07-30T23:17:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lord53737elerty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lord53737elerty/32/23759_2.png) [@Lord53737elerty](https://forum.makecode.com/u/Lord53737elerty)\
**Post date:** [July 30, 2025, 11:17pm UTC](https://forum.makecode.com/t/can-someone-help-me-with-this/38372/1 "2025-07-30T23:17:59Z")

</div>

Im working on a big project and im trying to make it that if the player gets overlapped by a specific enemy in a chase sequence, it would spawn the player in another tilemap, but when im spawned into the tilemap, if i overlap with any tile or just explore it, it says something “program error: failed to cast on null” and the game crashes, please someone help me

---

<div class="post-metadata">

**Author:** ![Makecoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/makecoder/32/23787_2.png) [@Makecoder](https://forum.makecode.com/u/Makecoder)\
**Post date:** [July 30, 2025, 11:39pm UTC](https://forum.makecode.com/t/can-someone-help-me-with-this/38372/2 "2025-07-30T23:39:28Z")

</div>

we need the game

---

<div class="post-metadata">

**Author:** ![Makecoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/makecoder/32/23787_2.png) [@Makecoder](https://forum.makecode.com/u/Makecoder)\
**Post date:** [July 31, 2025, 2:13am UTC](https://forum.makecode.com/t/can-someone-help-me-with-this/38372/3 "2025-07-31T02:13:04Z")

</div>

my prayer has been answered ( sorry for that woof woof I kinda don’t know how to use js)the error is because it cant work usually the player sprite hasn’t been set

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [July 31, 2025, 2:13am UTC](https://forum.makecode.com/t/can-someone-help-me-with-this/38372/4 "2025-07-31T02:13:30Z")

</div>

Does the other code in the game happen to require certain tiles to be present on a tilemap for it to work?

That might be the case.

---

<div class="post-metadata">

**Author:** ![Lord53737elerty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lord53737elerty/32/23759_2.png) [@Lord53737elerty](https://forum.makecode.com/u/Lord53737elerty)\
**Post date:** [July 31, 2025, 4:43pm UTC](https://forum.makecode.com/t/can-someone-help-me-with-this/38372/5 "2025-07-31T16:43:25Z")

</div>

No i don’t think so

---

<div class="post-metadata">

**Author:** ![Lord53737elerty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lord53737elerty/32/23759_2.png) [@Lord53737elerty](https://forum.makecode.com/u/Lord53737elerty)\
**Post date:** [July 31, 2025, 4:43pm UTC](https://forum.makecode.com/t/can-someone-help-me-with-this/38372/6 "2025-07-31T16:43:26Z")

</div>

Ok thanks
