# Difficulty Mechanics

**URL:** <https://forum.makecode.com/t/difficulty-mechanics/41458>\
**Category:** Game Design\
**Tags:** game, graphics-and-math\
**Created:** [January 10, 2026, 1:49pm UTC](https://forum.makecode.com/t/difficulty-mechanics/41458 "2026-01-10T13:49:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pneumonoultramicro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pneumonoultramicro/32/35403_2.png) [@Pneumonoultramicro](https://forum.makecode.com/u/Pneumonoultramicro)\
**Post date:** [January 10, 2026, 1:49pm UTC](https://forum.makecode.com/t/difficulty-mechanics/41458/1 "2026-01-10T13:49:45Z")

</div>

Hi, I made some mechanics for Difficulty choosing.

These mechanics are compatible with any game. (At least I think so?)

BTW if you use these mechanics and post them here, please give me credits:

I recently found out a friend of mine has been stealing MY mechanics/games and claiming them as their own.

Here’s the link: [https://arcade.makecode.com/S18400-85657-51760-94057](https://arcade.makecode.com/S18400-85657-51760-94057)

Hopefully you can improve on your games with this.

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [January 10, 2026, 9:34pm UTC](https://forum.makecode.com/t/difficulty-mechanics/41458/2 "2026-01-10T21:34:18Z")

</div>

Why are there so many if statements for killer move speed bro use arrays

---

<div class="post-metadata">

**Author:** ![babol](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/babol/32/27355_2.png) [@babol](https://forum.makecode.com/u/babol)\
**Post date:** [January 11, 2026, 10:04pm UTC](https://forum.makecode.com/t/difficulty-mechanics/41458/3 "2026-01-11T22:04:51Z")

</div>

or maybe just use a simple equation and a little bit of checks?  
if difficulty == 1  
base value = 5  
else  
20  
speed = (difficulty \* 5) + base value

---

<div class="post-metadata">

**Author:** ![Pneumonoultramicro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pneumonoultramicro/32/35403_2.png) [@Pneumonoultramicro](https://forum.makecode.com/u/Pneumonoultramicro)\
**Post date:** [January 11, 2026, 10:08pm UTC](https://forum.makecode.com/t/difficulty-mechanics/41458/4 "2026-01-11T22:08:35Z")

</div>

And, this was also made a few years back, when I wasn’t that good at coding

---

<div class="post-metadata">

**Author:** ![Pneumonoultramicro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pneumonoultramicro/32/35403_2.png) [@Pneumonoultramicro](https://forum.makecode.com/u/Pneumonoultramicro)\
**Post date:** [January 15, 2026, 3:52am UTC](https://forum.makecode.com/t/difficulty-mechanics/41458/5 "2026-01-15T03:52:52Z")

</div>

thanks!
