# Help with codes

**URL:** <https://forum.makecode.com/t/help-with-codes/21292>\
**Category:** Help\
**Tags:** graphics-and-math\
**Created:** [July 17, 2023, 4:32pm UTC](https://forum.makecode.com/t/help-with-codes/21292 "2023-07-17T16:32:46Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rubberducky271](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rubberducky271/32/9685_2.png) [@Rubberducky271](https://forum.makecode.com/u/Rubberducky271)\
**Post date:** [July 17, 2023, 4:32pm UTC](https://forum.makecode.com/t/help-with-codes/21292/1 "2023-07-17T16:32:46Z")

</div>

I want to somthing like this does anyone know the code to do it or extension

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

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [July 17, 2023, 5:01pm UTC](https://forum.makecode.com/t/help-with-codes/21292/2 "2023-07-17T17:01:33Z")

</div>

It’s an ask for number block, not an extension. It’s in the purple game category

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [July 18, 2023, 8:18pm UTC](https://forum.makecode.com/t/help-with-codes/21292/3 "2023-07-18T20:18:47Z")

</div>

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

Using this block (it’s in the game category), you can ask for a number. If you click the plus, you can also set a maximum length

---

<div class="post-metadata">

**Author:** ![Rubberducky271](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rubberducky271/32/9685_2.png) [@Rubberducky271](https://forum.makecode.com/u/Rubberducky271)\
**Post date:** [July 19, 2023, 4:31pm UTC](https://forum.makecode.com/t/help-with-codes/21292/4 "2023-07-19T16:31:48Z")

</div>

thanks do you know how to attch it to a certain block like A slpash Command? variable?

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [July 19, 2023, 5:55pm UTC](https://forum.makecode.com/t/help-with-codes/21292/5 "2023-07-19T17:55:01Z")

</div>

Just drag the block into the rounded slot there

---

<div class="post-metadata">

**Author:** ![Rubberducky271](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rubberducky271/32/9685_2.png) [@Rubberducky271](https://forum.makecode.com/u/Rubberducky271)\
**Post date:** [July 19, 2023, 8:45pm UTC](https://forum.makecode.com/t/help-with-codes/21292/6 "2023-07-19T20:45:53Z")

</div>

whats a rounded slot there

---

<div class="post-metadata">

**Author:** ![Octodemon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/octodemon/32/15417_2.png) [@Octodemon](https://forum.makecode.com/u/Octodemon)\
**Post date:** [July 19, 2023, 11:10pm UTC](https://forum.makecode.com/t/help-with-codes/21292/7 "2023-07-19T23:10:35Z")

</div>

![IMG_4221](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/9cb292c9869846b273fae2b93992fffedbbc1775.jpeg)

Here, I made a pretty basic level selector for you. When you input a number it loads one of the levels from 0 - 6.

---

<div class="post-metadata">

**Author:** ![Rubberducky271](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rubberducky271/32/9685_2.png) [@Rubberducky271](https://forum.makecode.com/u/Rubberducky271)\
**Post date:** [July 20, 2023, 4:37pm UTC](https://forum.makecode.com/t/help-with-codes/21292/8 "2023-07-20T16:37:33Z")

</div>

Thanks Octodemon! Works perfectly!

---

<div class="post-metadata">

**Author:** ![Rubberducky271](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rubberducky271/32/9685_2.png) [@Rubberducky271](https://forum.makecode.com/u/Rubberducky271)\
**Post date:** [July 20, 2023, 4:43pm UTC](https://forum.makecode.com/t/help-with-codes/21292/9 "2023-07-20T16:43:03Z")

</div>

I was able to make a code that needs a password but it won’t do what I tell it to do heres the game/test

> **[TEST](https://arcade.makecode.com/S29377-42224-20479-28847)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [July 20, 2023, 4:43pm UTC](https://forum.makecode.com/t/help-with-codes/21292/10 "2023-07-20T16:43:21Z")

</div>

You could make an array of tilemaps and get value at level variable.

---

<div class="post-metadata">

**Author:** ![Rubberducky271](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rubberducky271/32/9685_2.png) [@Rubberducky271](https://forum.makecode.com/u/Rubberducky271)\
**Post date:** [July 20, 2023, 5:47pm UTC](https://forum.makecode.com/t/help-with-codes/21292/11 "2023-07-20T17:47:08Z")

</div>

cool thanks!
