# Game bug!

**URL:** <https://forum.makecode.com/t/game-bug/29541>\
**Category:** Help\
**Tags:** game\
**Created:** [July 2, 2024, 5:21pm UTC](https://forum.makecode.com/t/game-bug/29541 "2024-07-02T17:21:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glitch\_Trap](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/glitch_trap/32/14144_2.png) [@Glitch\_Trap](https://forum.makecode.com/u/Glitch_Trap)\
**Post date:** [July 2, 2024, 5:21pm UTC](https://forum.makecode.com/t/game-bug/29541/1 "2024-07-02T17:21:21Z")

</div>

Hello everybody! I am creating a new game, and when you enter some rooms, there is a chance that you get put in the wrong room! I have no idea why, as I checked over all my code and see no issues, but if anyone knows what is going on, that would be super helpful! [https://arcade.makecode.com/S96591-72805-16960-36370](https://arcade.makecode.com/S96591-72805-16960-36370)

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [July 2, 2024, 7:44pm UTC](https://forum.makecode.com/t/game-bug/29541/2 "2024-07-02T19:44:00Z")

</div>

i’m not sure what the bug is, but the logic you have for loading maps is pretty complicated and i’d guess that’s where the issue is.

the tile-util extension has some blocks to make this easier:

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/f/9/f967faf83bf5217a2af49a853c1d8c959fc5e456.png)

here’s an example project:

> **[multi-maps](https://arcade.makecode.com/22808-04879-14211-29441)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Glitch\_Trap](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/glitch_trap/32/14144_2.png) [@Glitch\_Trap](https://forum.makecode.com/u/Glitch_Trap)\
**Post date:** [July 2, 2024, 10:32pm UTC](https://forum.makecode.com/t/game-bug/29541/3 "2024-07-02T22:32:33Z")

</div>

Thanks!
