# How do I make a sprite follow with lower friction?

**URL:** <https://forum.makecode.com/t/how-do-i-make-a-sprite-follow-with-lower-friction/30352>\
**Category:** Help\
**Created:** [August 28, 2024, 11:40pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-follow-with-lower-friction/30352 "2024-08-28T23:40:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![not\_a\_lemon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/not_a_lemon/32/35289_2.png) [@not\_a\_lemon](https://forum.makecode.com/u/not_a_lemon)\
**Post date:** [August 28, 2024, 11:40pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-follow-with-lower-friction/30352/1 "2024-08-28T23:40:17Z")

</div>

I want a sprite to follow the player by starting to follow when the player gets near, and then drifting off before following the player again in the other direction(kind of like serprizes from shovel knight. any help is apprecciated!

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [August 28, 2024, 11:50pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-follow-with-lower-friction/30352/2 "2024-08-28T23:50:38Z")

</div>

something like this?

> **[acceleration-follow](https://arcade.makecode.com/83474-59700-66325-17749)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

try messing with the max speed and acceleration variables to change the “friction”

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [August 28, 2024, 11:50pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-follow-with-lower-friction/30352/3 "2024-08-28T23:50:52Z")

</div>

Use  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/3/7/3774a3bc86c44788844b4a78b12f9207a459c5a1.png)  
from sprite utils to help (tip use game update block)

---

<div class="post-metadata">

**Author:** ![not\_a\_lemon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/not_a_lemon/32/35289_2.png) [@not\_a\_lemon](https://forum.makecode.com/u/not_a_lemon)\
**Post date:** [August 29, 2024, 2:25am UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-follow-with-lower-friction/30352/4 "2024-08-29T02:25:47Z")

</div>

Thanks, @richard and @Luke ! I’ll definitely mess around with both of these!

---

<div class="post-metadata">

**Author:** ![abuislam](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@abuislam](https://forum.makecode.com/u/abuislam)\
**Post date:** [August 29, 2024, 4:51pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-follow-with-lower-friction/30352/5 "2024-08-29T16:51:10Z")

</div>

Sounds like your sprite wants to play hard to get! Maybe it’s practicing its moonwalking skills with all that drifting. Just make sure it doesn’t moonwalk right out of the game[!](https://allfunnypuns.com/) 😄

---

<div class="post-metadata">

**Author:** ![not\_a\_lemon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/not_a_lemon/32/35289_2.png) [@not\_a\_lemon](https://forum.makecode.com/u/not_a_lemon)\
**Post date:** [August 30, 2024, 4:46am UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-follow-with-lower-friction/30352/6 "2024-08-30T04:46:58Z")

</div>

Hilarious! I love it! 🤣 🤣
