# Game not working

**URL:** <https://forum.makecode.com/t/game-not-working/30349>\
**Category:** Help\
**Tags:** game\
**Created:** [August 28, 2024, 11:17pm UTC](https://forum.makecode.com/t/game-not-working/30349 "2024-08-28T23:17:21Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobbyZero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robbyzero/32/17188_2.png) [@RobbyZero](https://forum.makecode.com/u/RobbyZero)\
**Post date:** [August 28, 2024, 11:17pm UTC](https://forum.makecode.com/t/game-not-working/30349/1 "2024-08-28T23:17:21Z")

</div>

My game is not working. basicly your supposed to click easy medium hard or impossible but it sets it at impossible no matter what I do and I cant find the error I spent two weeks just trying to find it pls help.

> **[Biking](https://arcade.makecode.com/S73286-11887-20167-85501)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![User7](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/user7/32/16035_2.png) [@User7](https://forum.makecode.com/u/User7)\
**Post date:** [August 28, 2024, 11:25pm UTC](https://forum.makecode.com/t/game-not-working/30349/2 "2024-08-28T23:25:37Z")

</div>

What’s the error also how do you play?

---

<div class="post-metadata">

**Author:** ![RobbyZero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robbyzero/32/17188_2.png) [@RobbyZero](https://forum.makecode.com/u/RobbyZero)\
**Post date:** [August 28, 2024, 11:40pm UTC](https://forum.makecode.com/t/game-not-working/30349/3 "2024-08-28T23:40:25Z")

</div>

Select the options you want and race by spamming A.  
The error is when you select the difficulty it stays at the same option no matter what you pick. No error message.

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [August 29, 2024, 2:46am UTC](https://forum.makecode.com/t/game-not-working/30349/4 "2024-08-29T02:46:46Z")

</div>

I think I have it, @RobbyZero .

Take a look at your `on game update every 30 ms` block and, specifically, the `if bikePoint` blocks. Notice they’re only nested within the `if raceActive = 1` container … which means it will always run if the race is going on. The same is true with the rest of your `on game update every X ms` blocks.

I don’t think those blocks are where they belong. It seems those need to be nested within the appropriate `if bikeSpeed = X` container. So, for the 10 ms update container, those blocks probably go within the `if bikeSpeed = 2` branch; for the 30 ms container, the `if bikeSpeed = 1`. I might be misinterpreting your speeds; if so, I hope you can at least understand my intention.

Give that a try and see if the timing works more correctly.

Keep us posted!

---

<div class="post-metadata">

**Author:** ![RobbyZero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robbyzero/32/17188_2.png) [@RobbyZero](https://forum.makecode.com/u/RobbyZero)\
**Post date:** [August 29, 2024, 3:00am UTC](https://forum.makecode.com/t/game-not-working/30349/5 "2024-08-29T03:00:55Z")

</div>

No that isn’t the problem and it doesn’t change anything. I already tried this previously and it didn’t work.

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [August 29, 2024, 3:03am UTC](https://forum.makecode.com/t/game-not-working/30349/6 "2024-08-29T03:03:00Z")

</div>

Oh, you’re going to actually make me work for this! 😆

Lemme try to dig deeper. Stand by…

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [August 29, 2024, 3:19am UTC](https://forum.makecode.com/t/game-not-working/30349/7 "2024-08-29T03:19:33Z")

</div>

OK; got it. You’re right, and I was misinterpreting what the `on game update` containers were doing.

Those `if bikePoint` blocks go inside the `if opLevel = X` branch instead. Take a look; you can see those `if bikePoint` blocks are still at the bottom, but they’re moved inside a couple of levels.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/2/d/2df8a44bb7f84fbf7c55fecad9e67f063aaa1ebb.png)

See if that gets you closer.

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [August 29, 2024, 3:20am UTC](https://forum.makecode.com/t/game-not-working/30349/8 "2024-08-29T03:20:49Z")

</div>

In case you want to see the code yourself:

> **[Biking](https://arcade.makecode.com/95304-67020-20552-72856)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Really good looking game, @RobbyZero !

---

<div class="post-metadata">

**Author:** ![RobbyZero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robbyzero/32/17188_2.png) [@RobbyZero](https://forum.makecode.com/u/RobbyZero)\
**Post date:** [August 29, 2024, 3:24am UTC](https://forum.makecode.com/t/game-not-working/30349/9 "2024-08-29T03:24:42Z")

</div>

Thank you so much. It’s working perfectly now!

---

<div class="post-metadata">

**Author:** ![RobbyZero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robbyzero/32/17188_2.png) [@RobbyZero](https://forum.makecode.com/u/RobbyZero)\
**Post date:** [August 29, 2024, 9:48pm UTC](https://forum.makecode.com/t/game-not-working/30349/10 "2024-08-29T21:48:34Z")

</div>

Welp game completely broke cant undo and now I have very little to come back from.

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [August 30, 2024, 1:04am UTC](https://forum.makecode.com/t/game-not-working/30349/11 "2024-08-30T01:04:57Z")

</div>

You have the version above that you can still use…?

---

<div class="post-metadata">

**Author:** ![RobbyZero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robbyzero/32/17188_2.png) [@RobbyZero](https://forum.makecode.com/u/RobbyZero)\
**Post date:** [August 30, 2024, 4:39am UTC](https://forum.makecode.com/t/game-not-working/30349/12 "2024-08-30T04:39:14Z")

</div>

Yeah that’s what I used I have a pending post in the game jam topic with the complete version
