# Hey! My games code is saying no

**URL:** <https://forum.makecode.com/t/hey-my-games-code-is-saying-no/46204>\
**Category:** Help\
**Created:** [September 29, 2026, 5:09pm UTC](https://forum.makecode.com/t/hey-my-games-code-is-saying-no/46204 "2026-09-29T17:09:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ItzWolfeel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/itzwolfeel/32/25239_2.png) [@ItzWolfeel](https://forum.makecode.com/u/ItzWolfeel)\
**Post date:** [September 29, 2026, 5:09pm UTC](https://forum.makecode.com/t/hey-my-games-code-is-saying-no/46204/1 "2026-09-29T17:09:40Z")

</div>

Im making a game and I’d love it to have a really good movement system, so I’ve been working on that for not very long, but for whatever reason, some stuff isn’t working in the slightest.

For one, you’re meant to have 3 dash charges, and then you run out until they regen. But you have infinite for some reason. I just came back to make code after like a year, and so it’s likely something extremely stupid, but I’d appreciate help!

Also it’s meant to disable gravity for the duration of the dash, and then return it, but it just doesn’t return it?

 ![arcade-Hall-of-Lunaire](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/d/4/d4b1218f701ba57e631d818c4d5042ca6be1f3f1.png)

---

<div class="post-metadata">

**Author:** ![ItzWolfeel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/itzwolfeel/32/25239_2.png) [@ItzWolfeel](https://forum.makecode.com/u/ItzWolfeel)\
**Post date:** [September 29, 2026, 5:16pm UTC](https://forum.makecode.com/t/hey-my-games-code-is-saying-no/46204/2 "2026-09-29T17:16:45Z")

</div>

My bad, I forgot I could upload a link, [https://arcade.makecode.com/S53871-89318-24423-15701](https://arcade.makecode.com/S53871-89318-24423-15701)

---

<div class="post-metadata">

**Author:** ![abgriffin1-rgb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/abgriffin1-rgb/32/35662_2.png) [@abgriffin1-rgb](https://forum.makecode.com/u/abgriffin1-rgb)\
**Post date:** [September 30, 2026, 4:10am UTC](https://forum.makecode.com/t/hey-my-games-code-is-saying-no/46204/3 "2026-09-30T04:10:51Z")

</div>

have you tried using variables to go to false after the button is pressed and then when the regeneration timer thing is up have the variable go back to true. you could use this as a sort of countdown in an if then statement. (If (dash number \> 0) then (if (variable name) = true & a button is pressed) — Then (set (my sprite) vx (x2) and vy (x2) (turn gravity off) (pause 1 sec) (turn gravity on) (if dash number \< 1) then set (variable name) to false)

---

<div class="post-metadata">

**Author:** ![tmittib](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/tmittib/32/25646_2.png) [@tmittib](https://forum.makecode.com/u/tmittib)\
**Post date:** [September 30, 2026, 4:12am UTC](https://forum.makecode.com/t/hey-my-games-code-is-saying-no/46204/4 "2026-09-30T04:12:29Z")

</div>

Hmm. It seems you forgot to directly say “not equal to 0”.
