# Levels not working

**URL:** https://forum.makecode.com/t/levels-not-working/4110
**Category:** Help
**Created:** [October 27, 2020, 9:40pm UTC](https://forum.makecode.com/t/levels-not-working/4110 "2020-10-27T21:40:04Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)
#### Post date: [October 27, 2020, 9:40pm UTC](https://forum.makecode.com/t/levels-not-working/4110/1 "2020-10-27T21:40:04Z")

</div>

> **[The adventures of ballo](https://arcade.makecode.com/10667-89585-86464-48911)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

my levels are not working please someone help 😔

---

<div class="post-metadata">

### Author: ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)
#### Post date: [October 27, 2020, 9:45pm UTC](https://forum.makecode.com/t/levels-not-working/4110/2 "2020-10-27T21:45:53Z")

</div>

Please i really need help!

---

<div class="post-metadata">

### Author: ![annapurna079](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@annapurna079](https://forum.makecode.com/u/annapurna079)
#### Post date: [October 27, 2020, 10:03pm UTC](https://forum.makecode.com/t/levels-not-working/4110/3 "2020-10-27T22:03:08Z")

</div>

This is what i do to change levals.

 ![Screenshot 2020-10-27 180219](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/f/f0d284b6e42cb3eb3f8281a19ae593adbd9fbe47.png)

---

<div class="post-metadata">

### Author: ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)
#### Post date: [October 27, 2020, 10:03pm UTC](https://forum.makecode.com/t/levels-not-working/4110/4 "2020-10-27T22:03:40Z")

</div>

I’m doing something DIFFERENT did you look at the code?

---

<div class="post-metadata">

### Author: ![annapurna079](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@annapurna079](https://forum.makecode.com/u/annapurna079)
#### Post date: [October 27, 2020, 10:04pm UTC](https://forum.makecode.com/t/levels-not-working/4110/5 "2020-10-27T22:04:03Z")

</div>

no but this is what i did for my games.

---

<div class="post-metadata">

### Author: ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)
#### Post date: [October 27, 2020, 10:04pm UTC](https://forum.makecode.com/t/levels-not-working/4110/6 "2020-10-27T22:04:44Z")

</div>

then look at it and see if you can help

---

<div class="post-metadata">

### Author: ![timber](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@timber](https://forum.makecode.com/u/timber)
#### Post date: [October 27, 2020, 10:29pm UTC](https://forum.makecode.com/t/levels-not-working/4110/7 "2020-10-27T22:29:39Z")

</div>

I think the issue is that you need to call your LevelMaker function when you overlap with your flag tile. You don’t need an if statement in this block. You just need to increase your level variable by 1 and let the LevelMaker function decide what tilemap to load.

![2020-10-27_17-26-38](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/aea0327ff87b4d3719657dd74908c3c07211af92.png)

I think you can remove all the call LevelMaker blocks from inside your function as well and remove the first condition since level 1 is called in your on start block.

![2020-10-27_17-31-37](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/579a0ec16d65009709c09fea27b7e96e426b9a12.png)

---

<div class="post-metadata">

### Author: ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)
#### Post date: [October 28, 2020, 3:50pm UTC](https://forum.makecode.com/t/levels-not-working/4110/8 "2020-10-28T15:50:42Z")

</div>

thank you!
