# Question from my kid: Created a game but can't move to next level properly

**URL:** <https://forum.makecode.com/t/question-from-my-kid-created-a-game-but-cant-move-to-next-level-properly/17400>\
**Category:** Help\
**Tags:** game\
**Created:** [January 13, 2023, 6:38am UTC](https://forum.makecode.com/t/question-from-my-kid-created-a-game-but-cant-move-to-next-level-properly/17400 "2023-01-13T06:38:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daumdaum](https://avatars.discourse-cdn.com/v4/letter/d/838e76/32.png) [@daumdaum](https://forum.makecode.com/u/daumdaum)\
**Post date:** [January 13, 2023, 6:38am UTC](https://forum.makecode.com/t/question-from-my-kid-created-a-game-but-cant-move-to-next-level-properly/17400/1 "2023-01-13T06:38:46Z")

</div>

My kid is very keen on working more on it at home. She designs a game with level 1, 2 and 3.

She finished one level but it can’t move on to next level. Two situations might occur, either it shows error

or after level 1 jump directly to level 3. Here is her coding and she is very eager to hear your expertise to solve the coding question

> **[game cuore](https://arcade.makecode.com/S73067-54258-23920-71339)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Grateful if you can give her some clue and it can definitely encourage her to move forward to her game design.

---

<div class="post-metadata">

**Author:** ![personalnote](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/personalnote/32/31359_2.png) [@personalnote](https://forum.makecode.com/u/personalnote)\
**Post date:** [January 15, 2023, 12:40am UTC](https://forum.makecode.com/t/question-from-my-kid-created-a-game-but-cant-move-to-next-level-properly/17400/2 "2023-01-15T00:40:50Z")

</div>

Hi there!

First thing is that Level 1 and Level 2 share the same tilemaps. An easy fix for this is to delete the level 2 tilemap block and replace it with a new tilemap block. Then go to assets and click the correct level 2 tilemap.

Second thing is that while you included a `place mySprite on top of random tile` block for level 2, you didn’t include one for level 3. So, when the game spawns the level 2 tilemap, it places the character on the next level changing tiles. Observe the code in the Next Level function below:

 ![Screenshot 2023-01-14 at 7.48.52 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/aa91196150037d39c8cb16e37a96ffb5470352cf.png)

I’ve also changed the jumping mechanic so it’s more reliable and faster, although you will have to tweak it with an if else statement to make the character jump only when she’s on the floor. Keep on coding!

---

<div class="post-metadata">

**Author:** ![IMakeCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/imakecode/32/17303_2.png) [@IMakeCode](https://forum.makecode.com/u/IMakeCode)\
**Post date:** [January 15, 2023, 12:44am UTC](https://forum.makecode.com/t/question-from-my-kid-created-a-game-but-cant-move-to-next-level-properly/17400/3 "2023-01-15T00:44:30Z")

</div>

I fixed the error problem, but the level skipping problem isn’t an actual bug. The first 2 tilemaps(levels) ended up being the same, which means that the ‘next level’ function loads the same tilemap.

> **[game cuore](https://arcade.makecode.com/S98474-06009-75302-50642)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
