# Friction in physics

**URL:** <https://forum.makecode.com/t/friction-in-physics/2139>\
**Category:** Arcade\
**Created:** [May 19, 2020, 4:48pm UTC](https://forum.makecode.com/t/friction-in-physics/2139 "2020-05-19T16:48:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [May 19, 2020, 4:48pm UTC](https://forum.makecode.com/t/friction-in-physics/2139/1 "2020-05-19T16:48:27Z")

</div>

We’ve added friction in the beta ([https://arcade.makecode.com/beta](https://arcade.makecode.com/beta)). Try it out!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/8ce03c0044e71c238325f658e7693bd8c373bd16.png)

![screengrab](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/ea439bd35f00526e6ad1635e114a268b1a27b17a.gif)

---

<div class="post-metadata">

**Author:** ![Jernau](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@Jernau](https://forum.makecode.com/u/Jernau)\
**Post date:** [May 19, 2020, 8:45pm UTC](https://forum.makecode.com/t/friction-in-physics/2139/2 "2020-05-19T20:45:40Z")

</div>

Nice!

I’d like to build a tight platformer, which feels something like “Super Meat Boy” or “Celeste”. A good start would be ground and air friction, plus an acceleration curve before reaching max speed. Would it be possible to use this new friction block to help achieve that? If so, what might the code look like?

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [May 19, 2020, 10:59pm UTC](https://forum.makecode.com/t/friction-in-physics/2139/3 "2020-05-19T22:59:06Z")

</div>

The new friction physics kick in when the sprite has velocity and no acceleration. It linearly decreases the speed based on the friction value.
