# Why wont my gravity work

**URL:** <https://forum.makecode.com/t/why-wont-my-gravity-work/37335>\
**Category:** Help\
**Created:** [June 16, 2025, 1:21am UTC](https://forum.makecode.com/t/why-wont-my-gravity-work/37335 "2025-06-16T01:21:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![the\_real\_sfpour](https://avatars.discourse-cdn.com/v4/letter/t/7ba0ec/32.png) [@the\_real\_sfpour](https://forum.makecode.com/u/the_real_sfpour)\
**Post date:** [June 16, 2025, 1:21am UTC](https://forum.makecode.com/t/why-wont-my-gravity-work/37335/1 "2025-06-16T01:21:39Z")

</div>

[https://arcade.makecode.com/S64205-17997-13010-55878](https://arcade.makecode.com/S64205-17997-13010-55878) can you help with makeing my gravity and jump physiscs work?

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [June 16, 2025, 2:37pm UTC](https://forum.makecode.com/t/why-wont-my-gravity-work/37335/2 "2025-06-16T14:37:50Z")

</div>

What you need to do is set the Y _acceleration_, not the Velocity. Velocity is the movement speed, but acceleration is how much the speed increases over time.

---

<div class="post-metadata">

**Author:** ![Bilangus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bilangus/32/33219_2.png) [@Bilangus](https://forum.makecode.com/u/Bilangus)\
**Post date:** [June 16, 2025, 2:40pm UTC](https://forum.makecode.com/t/why-wont-my-gravity-work/37335/3 "2025-06-16T14:40:53Z")

</div>

For gravity:

1- Pick this block from the physics section on sprites tab

 ![1000056776](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/c/4/c4d8350cd225b74adf585f98dd08464206e375ec.jpeg)

2- click on it to change it to the Acceleration Y setting, then set it to your liking (600 should work fine)

 ![1000056777](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/7/a/7a8db85a3b4cb711b4215a05f74b36dfff86c290.jpeg)

For jumping:

This should work with a little tuning in the numbers:

 ![1000056780](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/5/1/5168abcdc9ed4e954139979b03b790ba074f96a3.jpeg)

If you only want your sprite to move left-right, set the second value on the move with buttons block to 0.

 ![1000056781](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/6/6621e531a850e385b12701ee7f7b50382486652e.jpeg)

Hope this helps!

---

<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:** [June 16, 2025, 2:42pm UTC](https://forum.makecode.com/t/why-wont-my-gravity-work/37335/4 "2025-06-16T14:42:56Z")

</div>

FIRST OF ALL  
Use AY instead of VY for your gravity

SECOND OF ALL  
Set the VY in the move sprite block to 0

THIRD OF ALL  
I didn’t check enough to see you have a jump mechanic

---

<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 16, 2025, 2:53pm UTC](https://forum.makecode.com/t/why-wont-my-gravity-work/37335/5 "2025-06-16T14:53:19Z")

</div>

To make your gravity work, you need to make the character move with 0 vy.

 ![Screenshot 2025-06-16 9.13.33 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/0/a0d17f0efc7390eaa15d39c3707d83bc1633a72c.png)  
To make your jump work, you need to just use the “If ewow hitting wall bottom block”.  
 ![Screenshot 2025-06-16 9.15.33 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/3/83ff70b52e80141cd2a20fdeefb0f1e09594f50e.png)
