# How do you use friction?

**URL:** <https://forum.makecode.com/t/how-do-you-use-friction/19400>\
**Category:** Help\
**Created:** [April 24, 2023, 2:08pm UTC](https://forum.makecode.com/t/how-do-you-use-friction/19400 "2023-04-24T14:08:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brainstorm\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brainstorm_studios/32/20476_2.png) [@Brainstorm\_Studios](https://forum.makecode.com/u/Brainstorm_Studios)\
**Post date:** [April 24, 2023, 2:08pm UTC](https://forum.makecode.com/t/how-do-you-use-friction/19400/1 "2023-04-24T14:08:16Z")

</div>

I can’t get it to do anything.

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [April 24, 2023, 6:34pm UTC](https://forum.makecode.com/t/how-do-you-use-friction/19400/2 "2023-04-24T18:34:58Z")

</div>

Friction is a multiplier that determines the force that slows objects on surfaces (walls in this case). In other words, you could call it “slipperyness”, but in reverse. The higher the friction, the better the grip and the less the objects slide around.

By default, sprites have a friction of “infinity” because they stop immediately. Setting friction to a lower number will make it slide more. Setting it to 0 will make it keep the momentum it gains forever until it is stopped by other forces.

---

<div class="post-metadata">

**Author:** ![Brainstorm\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brainstorm_studios/32/20476_2.png) [@Brainstorm\_Studios](https://forum.makecode.com/u/Brainstorm_Studios)\
**Post date:** [April 25, 2023, 4:27pm UTC](https://forum.makecode.com/t/how-do-you-use-friction/19400/3 "2023-04-25T16:27:25Z")

</div>

So if i wanted a character to jump off a wall diagonally then stop after an amount of time, i could set the fx to 200 and the vx to 250?
