# Gravity not working

**URL:** <https://forum.makecode.com/t/gravity-not-working/3823>\
**Category:** Arcade\
**Created:** [October 9, 2020, 2:35pm UTC](https://forum.makecode.com/t/gravity-not-working/3823 "2020-10-09T14:35:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)\
**Post date:** [October 9, 2020, 2:35pm UTC](https://forum.makecode.com/t/gravity-not-working/3823/1 "2020-10-09T14:35:03Z")

</div>

the gravity is not working… is there a glitch or my code isn’t working?

 ![Screenshot 2020-10-09 103351](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/0d08e7ed149b44e57462418a064d444e2a75ec6e.png)

---

<div class="post-metadata">

**Author:** ![jacob\_c](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jacob_c/32/1532_2.png) [@jacob\_c](https://forum.makecode.com/u/jacob_c)\
**Post date:** [October 9, 2020, 3:35pm UTC](https://forum.makecode.com/t/gravity-not-working/3823/2 "2020-10-09T15:35:34Z")

</div>

Your velocity in the button press handler is going in the wrong direction. A **negative value** will go upwards. A positive value goes down.
