# I need help with the maps since they are overlapping

**URL:** <https://forum.makecode.com/t/i-need-help-with-the-maps-since-they-are-overlapping/38623>\
**Category:** Help\
**Created:** [August 11, 2025, 5:03pm UTC](https://forum.makecode.com/t/i-need-help-with-the-maps-since-they-are-overlapping/38623 "2025-08-11T17:03:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/25398_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [August 11, 2025, 5:03pm UTC](https://forum.makecode.com/t/i-need-help-with-the-maps-since-they-are-overlapping/38623/1 "2025-08-11T17:03:20Z")

</div>

I think I’m just stupid but level 3 and four keep overlapping and i don’t know how to fix it. pls help.

> **[this game is basically level devil.](https://arcade.makecode.com/S13392-00741-22920-70169)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)\
**Post date:** [August 11, 2025, 6:55pm UTC](https://forum.makecode.com/t/i-need-help-with-the-maps-since-they-are-overlapping/38623/2 "2025-08-11T18:55:59Z")

</div>

Hi! I think the reason Levels 3 and 4 are overlapping is because they’re using the same tilemap or not resetting it between levels.  
To fix this, you can:

1. Create a separate tilemap for each level.
2. When you change levels, use a **“set tilemap to…”** block for that level’s specific map.

This way, each level has its own map and they won’t overlap anymore.  
If you want, I can show you how to organize them so it’s easier to manage many levels.

---

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/25398_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [August 12, 2025, 2:10am UTC](https://forum.makecode.com/t/i-need-help-with-the-maps-since-they-are-overlapping/38623/3 "2025-08-12T02:10:49Z")

</div>

I tried the idea of using the “set tilemap to” block but it still overlaps so i don’t know whats going on. pls show me how to manage the levels easier.

---

<div class="post-metadata">

**Author:** ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)\
**Post date:** [August 27, 2025, 5:34pm UTC](https://forum.makecode.com/t/i-need-help-with-the-maps-since-they-are-overlapping/38623/4 "2025-08-27T17:34:36Z")

</div>

Ah, the reason why level 3 had bugs was mainly because of Aa few tips for fixing it without rewriting code:

1. **Check the tile placement:**  
Go into the tilemap editor and make sure the tiles for level 3 and 4 don’t physically occupy the same space. Even a one-tile overlap will trigger both events.
2. **Use `sprites.destroy()` or flags:**  
If some tiles or sprites should only exist in one level, destroy or hide them when moving to the next level. Like you did in `Level_4()`, where you destroy `HOOOOOOOOLE` sprites. Make sure level 3’s special tiles/sprites are cleared before level 4 starts.
3. **Level flag variables:**  
You can add a simple boolean flag like `currentLevel = 3` or `currentLevel = 4` and then inside the overlap events, check that flag before doing anything. Example with blocks logic:

```auto
if currentLevel == 3:
    do overlap stuff for level 3
else if currentLevel == 4:
    do overlap stuff for level 4

```

Basically, the overlaps are firing because MakeCode doesn’t know the player is in “level 3” or “level 4” if the tiles from both levels exist at the same coordinates. Fixing the tile placement or adding level checks usually solves this.
