# Level One Repeats

**URL:** <https://forum.makecode.com/t/level-one-repeats/18690>\
**Category:** Help\
**Tags:** game, platformer\
**Created:** [March 23, 2023, 5:06pm UTC](https://forum.makecode.com/t/level-one-repeats/18690 "2023-03-23T17:06:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadie](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sadie/32/8164_2.png) [@Sadie](https://forum.makecode.com/u/Sadie)\
**Post date:** [March 23, 2023, 5:06pm UTC](https://forum.makecode.com/t/level-one-repeats/18690/1 "2023-03-23T17:06:40Z")

</div>

I need some help with my platformer.  
I have multiple levels, but the first level always repeats itself and I can’t figure it out.

 ![Screen Shot 2023-03-23 at 3.08.52 pm](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e6f925b83979b56fc08d3f254a273d4e0a144285.png)

---

<div class="post-metadata">

**Author:** ![Salex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/salex/32/15835_2.png) [@Salex](https://forum.makecode.com/u/Salex)\
**Post date:** [March 23, 2023, 5:26pm UTC](https://forum.makecode.com/t/level-one-repeats/18690/2 "2023-03-23T17:26:42Z")

</div>

From what I can tell, the actual level selection part of it seems fine; it may be where you’re calling it that is causing the problem.

Would it be possible to share the game link?  
In the editor, there’s 5 buttons on the top bar on the right. Click the one labeled here:

 ![Screenshot 2023-03-23 at 17.14.13](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/2f561f3641ca253424b8d579399e8a54d9703272.png)  
At that point, click “share project” and press the “🔗 Copy” button. Then paste it here.

---

<div class="post-metadata">

**Author:** ![Sadie](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sadie/32/8164_2.png) [@Sadie](https://forum.makecode.com/u/Sadie)\
**Post date:** [March 24, 2023, 4:52pm UTC](https://forum.makecode.com/t/level-one-repeats/18690/3 "2023-03-24T16:52:01Z")

</div>

Sure, here’s the link:

> **[Dynamite Duck](https://arcade.makecode.com/S31848-71341-09362-08540)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![BoostedGames](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/boostedgames/32/29419_2.png) [@BoostedGames](https://forum.makecode.com/u/BoostedGames)\
**Post date:** [March 24, 2023, 4:52pm UTC](https://forum.makecode.com/t/level-one-repeats/18690/4 "2023-03-24T16:52:03Z")

</div>

Could you share the game link? It could be possible you aren’t adding a variable at the end or something else.

---

<div class="post-metadata">

**Author:** ![Sadie](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sadie/32/8164_2.png) [@Sadie](https://forum.makecode.com/u/Sadie)\
**Post date:** [March 27, 2023, 11:09pm UTC](https://forum.makecode.com/t/level-one-repeats/18690/5 "2023-03-27T23:09:23Z")

</div>

Yes, that is possible. Here’s the game link, could you have a look at it for me?

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [March 27, 2023, 11:15pm UTC](https://forum.makecode.com/t/level-one-repeats/18690/6 "2023-03-27T23:15:22Z")

</div>

set the “Current\_level” variable to 1 at the start

---

<div class="post-metadata">

**Author:** ![Sadie](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sadie/32/8164_2.png) [@Sadie](https://forum.makecode.com/u/Sadie)\
**Post date:** [March 28, 2023, 9:57pm UTC](https://forum.makecode.com/t/level-one-repeats/18690/7 "2023-03-28T21:57:49Z")

</div>

Oh yes, thank you so much, it works now! 😄
