# Is there a way to temporarily disable the "gravity" in my platformer?

**URL:** <https://forum.makecode.com/t/is-there-a-way-to-temporarily-disable-the-gravity-in-my-platformer/37438>\
**Category:** Help\
**Created:** [June 20, 2025, 9:13pm UTC](https://forum.makecode.com/t/is-there-a-way-to-temporarily-disable-the-gravity-in-my-platformer/37438 "2025-06-20T21:13:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tasty\_turnip2](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@Tasty\_turnip2](https://forum.makecode.com/u/Tasty_turnip2)\
**Post date:** [June 20, 2025, 9:13pm UTC](https://forum.makecode.com/t/is-there-a-way-to-temporarily-disable-the-gravity-in-my-platformer/37438/1 "2025-06-20T21:13:05Z")

</div>

In platformers, when you give a sprite upward velocity, it will come back down to the ground. I want to make a cutscene in my game where the character loses gravity and flies away. Is there any way to temporarily disable gravity so that the sprite can float around like they are in space?

---

<div class="post-metadata">

**Author:** ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)\
**Post date:** [June 22, 2025, 2:26am UTC](https://forum.makecode.com/t/is-there-a-way-to-temporarily-disable-the-gravity-in-my-platformer/37438/2 "2025-06-22T02:26:03Z")

</div>

If you are using ay, set it to zero.

---

<div class="post-metadata">

**Author:** ![Seal\_dev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/seal_dev/32/33723_2.png) [@Seal\_dev](https://forum.makecode.com/u/Seal_dev)\
**Post date:** [June 22, 2025, 2:34am UTC](https://forum.makecode.com/t/is-there-a-way-to-temporarily-disable-the-gravity-in-my-platformer/37438/3 "2025-06-22T02:34:10Z")

</div>

you could change the vy to 0

---

<div class="post-metadata">

**Author:** ![Jedi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jedi/32/14307_2.png) [@Jedi](https://forum.makecode.com/u/Jedi)\
**Post date:** [June 22, 2025, 2:53am UTC](https://forum.makecode.com/t/is-there-a-way-to-temporarily-disable-the-gravity-in-my-platformer/37438/4 "2025-06-22T02:53:35Z")

</div>

just set the sprites acceleration (y) to 0!
