# https://arcade.makecode.com/S03165-44096-22888-81950 my game has an error can anyone help

**URL:** <https://forum.makecode.com/t/https-arcade-makecode-com-s03165-44096-22888-81950-my-game-has-an-error-can-anyone-help/23175>\
**Category:** Help\
**Created:** [October 9, 2023, 6:55pm UTC](https://forum.makecode.com/t/https-arcade-makecode-com-s03165-44096-22888-81950-my-game-has-an-error-can-anyone-help/23175 "2023-10-09T18:55:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pigpigeons\_r\_c00l](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pigpigeons_r_c00l/32/12313_2.png) [@pigpigeons\_r\_c00l](https://forum.makecode.com/u/pigpigeons_r_c00l)\
**Post date:** [October 9, 2023, 6:55pm UTC](https://forum.makecode.com/t/https-arcade-makecode-com-s03165-44096-22888-81950-my-game-has-an-error-can-anyone-help/23175/1 "2023-10-09T18:55:32Z")

</div>

[https://arcade.makecode.com/S03165-44096-22888-81950](https://arcade.makecode.com/S03165-44096-22888-81950) my code is not letting me spawn on the right place. pls help

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [October 9, 2023, 10:03pm UTC](https://forum.makecode.com/t/https-arcade-makecode-com-s03165-44096-22888-81950-my-game-has-an-error-can-anyone-help/23175/2 "2023-10-09T22:03:31Z")

</div>

You were having the problem because you were trying to place the sprite on a tile that didn’t exist yet. This can be fixed by declaring the tilemap before placing the sprite.

> **[blurge - fixed](https://arcade.makecode.com/S23354-37070-46586-24148)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [October 9, 2023, 10:10pm UTC](https://forum.makecode.com/t/https-arcade-makecode-com-s03165-44096-22888-81950-my-game-has-an-error-can-anyone-help/23175/3 "2023-10-09T22:10:11Z")

</div>

> [@pigpigeons\_r\_c00l](#):
>
> not letting me spawn on the right place

I am not sure what the right place to spawn should be, but here is an example on line 186 which sets the spawn position to wherever the player sprite is:  
 ![spawnposition](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/c29feec9733ab4a7307d73ff80e83ae8e88ab27e.png)

> **[blurge](https://arcade.makecode.com/37183-34872-49285-47090)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![pigpigeons\_r\_c00l](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pigpigeons_r_c00l/32/12313_2.png) [@pigpigeons\_r\_c00l](https://forum.makecode.com/u/pigpigeons_r_c00l)\
**Post date:** [October 9, 2023, 10:22pm UTC](https://forum.makecode.com/t/https-arcade-makecode-com-s03165-44096-22888-81950-my-game-has-an-error-can-anyone-help/23175/4 "2023-10-09T22:22:31Z")

</div>

thanks

---

<div class="post-metadata">

**Author:** ![pigpigeons\_r\_c00l](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pigpigeons_r_c00l/32/12313_2.png) [@pigpigeons\_r\_c00l](https://forum.makecode.com/u/pigpigeons_r_c00l)\
**Post date:** [October 9, 2023, 10:22pm UTC](https://forum.makecode.com/t/https-arcade-makecode-com-s03165-44096-22888-81950-my-game-has-an-error-can-anyone-help/23175/5 "2023-10-09T22:22:44Z")

</div>

thanks man😁

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [October 9, 2023, 10:53pm UTC](https://forum.makecode.com/t/https-arcade-makecode-com-s03165-44096-22888-81950-my-game-has-an-error-can-anyone-help/23175/6 "2023-10-09T22:53:23Z")

</div>

Here’s an informative article, maybe related:

> **[Breadcrumb Trail](https://arcade.makecode.com/concepts/breadcrumb-trail)**
>
> Placing ||sprites:sprites|| on a ||scene:tilemap|| can be a great way to set up levels
> for your player to explore. These ||sprites:sprites|| can be used as decoration
> or as objects that the player can interact with.
