# Why is it going strait to Level 2?

**URL:** https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290
**Category:** Help
**Created:** [November 5, 2020, 9:21pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290 "2020-11-05T21:21:38Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)
#### Post date: [November 5, 2020, 9:21pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/1 "2020-11-05T21:21:39Z")

</div>

> **[Boost](https://arcade.makecode.com/43419-08744-57562-27084)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)
#### Post date: [November 6, 2020, 12:45am UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/2 "2020-11-06T00:45:59Z")

</div>

At the start you set the level to 1. In the on overlap event food, you change the level by 1, which becomes two, and then you check the value of the level.

---

<div class="post-metadata">

### Author: ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)
#### Post date: [November 6, 2020, 12:50am UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/3 "2020-11-06T00:50:35Z")

</div>

But it doesn’t touch the goal at first.

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [November 6, 2020, 2:07am UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/4 "2020-11-06T02:07:51Z")

</div>

Level 1 and level 2 have the same tilemap, so it’s impossible to tell which one it is.

---

<div class="post-metadata">

### Author: ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)
#### Post date: [November 6, 2020, 2:13am UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/5 "2020-11-06T02:13:27Z")

</div>

You’re right! How did that happen?

---

<div class="post-metadata">

### Author: ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)
#### Post date: [November 8, 2020, 3:56pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/6 "2020-11-08T15:56:22Z")

</div>

It still doesn’t work. Is this a glitch or careless mistake?

Edit: Wait, now all the tile maps changed to level one.

Edit 2: I have multiple tile maps in my game, but it seems like the tile map extension doesn’t work for 8x8 tile maps.

---

<div class="post-metadata">

### Author: ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)
#### Post date: [November 12, 2020, 5:23pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/7 "2020-11-12T17:23:34Z")

</div>

Can someone please help?

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [November 12, 2020, 5:32pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/8 "2020-11-12T17:32:07Z")

</div>

Maybe it’s just a bug, so try copying the JavaScript to another new project. And are you using Beta?

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [November 12, 2020, 7:10pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/9 "2020-11-12T19:10:57Z")

</div>

Post a new version of your code so that we can see where you’re at. I looks like you’ve made some changes since your original post.

---

<div class="post-metadata">

### Author: ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)
#### Post date: [November 12, 2020, 7:21pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/10 "2020-11-12T19:21:43Z")

</div>

ok, here:

> **[Boost debug](https://arcade.makecode.com/23108-13174-98248-50360)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [November 12, 2020, 7:46pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/11 "2020-11-12T19:46:13Z")

</div>

So, this code is working correctly … but it might not be working the way that you want it to. 🙂

Are you familiar with using Debug mode in MakeCode Arcade?

---

<div class="post-metadata">

### Author: ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)
#### Post date: [November 12, 2020, 7:46pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/12 "2020-11-12T19:46:50Z")

</div>

Yes, I am.

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [November 12, 2020, 7:51pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/13 "2020-11-12T19:51:46Z")

</div>

Excellent! I’m not sure what you want your code to do, so I don’t know how to help you fix it yet. Try this, though, to see why certain blocks are running.

Enter Debug mode and set breakpoints in the first block of the overlap function and in the `Level 1` function. If another function seems to be running unexpectedly, then try setting a breakpoint at the start of that function to see if you deduce why that function is being called.

If you’re still stuck, let us know what you’re trying to accomplish (or which part is not working the way that you’re expecting) and we’ll try to help you from there.

Good luck! Love the look of the game!

---

<div class="post-metadata">

### Author: ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)
#### Post date: [November 12, 2020, 9:12pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/14 "2020-11-12T21:12:49Z")

</div>

I tried that before multiple times, and it didn’t work, so I came here 😁. When I draw the level 2 tilemap, it sets the level 1 _and_ level 2 tilemap to what I drew. I think it is a glitch. I want to produce different levels. I tried using the “tilemaps” extension to handle multiple tilemaps, but it doesn’t seem to work with 8x8 tilemaps.

---

<div class="post-metadata">

### Author: ![LcAtonal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lcatonal/32/16800_2.png) [@LcAtonal](https://forum.makecode.com/u/LcAtonal)
#### Post date: [November 12, 2020, 11:28pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/15 "2020-11-12T23:28:20Z")

</div>

> [@GameGod](#):
>
> When I draw the level 2 tilemap, it sets the level 1 _and_ level 2 tilemap to what I drew

Wait. Do you mean that when you draw your level 2 tilemap, the level 1 tilemap changes too?

---

<div class="post-metadata">

### Author: ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)
#### Post date: [November 13, 2020, 12:17am UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/16 "2020-11-13T00:17:53Z")

</div>

That is correct.

---

<div class="post-metadata">

### Author: ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)
#### Post date: [November 13, 2020, 2:16pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/17 "2020-11-13T14:16:07Z")

</div>

> [@UnsignedArduino](#):
>
> And are you using Beta?

No.

> [@UnsignedArduino](#):
>
> Maybe it’s just a bug, so try copying the JavaScript to another new project.

I tried that.

---

<div class="post-metadata">

### Author: ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)
#### Post date: [November 13, 2020, 2:20pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/18 "2020-11-13T14:20:32Z")

</div>

odd very odd

---

<div class="post-metadata">

### Author: ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)
#### Post date: [November 13, 2020, 2:20pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/19 "2020-11-13T14:20:59Z")

</div>

WAIT I KNOw THE ANSWER ON YOUR TILEMAP PROBLEM.  
It’s not a bug guys… You guys know that new assets update? well I do. When you copy and paste a tilemap, you have the asset name with the tilemap you copy and pasted. I copy and paste one of my tilemaps that is named “asset 3” and edit the new tilemap that I pasted, it will change the other tilemap that you copied from because it has the same asset name. I hope all of that makes sense. I’ll post a link that makes an example with comments on it so you know what to do.

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [November 17, 2020, 2:24pm UTC](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290/20 "2020-11-17T14:24:35Z")

</div>

Looks like we may need some help from the MakeCode team.

I’m looking at the code where your tile maps reside:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/0b12c8a74a08031d3ce69c95d06740a57ba7ab82.png)

I’m used to seeing entries for each tile map that is created in Blocks. I only see the `level` map, though. Strange.

@GameGod I also can’t find the extension that you are using for 8x8 tile maps. I’m not familiar with it. How did you add it to your project?

[Next page](https://forum.makecode.com/t/why-is-it-going-strait-to-level-2/4290.md?page=2)
