# How do I make a sprite be pulled towards another with increasing speed that persists after?

**URL:** <https://forum.makecode.com/t/how-do-i-make-a-sprite-be-pulled-towards-another-with-increasing-speed-that-persists-after/37693>\
**Category:** Help\
**Tags:** game, graphics-and-math\
**Created:** [July 1, 2025, 4:48pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-be-pulled-towards-another-with-increasing-speed-that-persists-after/37693 "2025-07-01T16:48:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlackRabbit1924](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blackrabbit1924/32/23331_2.png) [@BlackRabbit1924](https://forum.makecode.com/u/BlackRabbit1924)\
**Post date:** [July 1, 2025, 4:48pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-be-pulled-towards-another-with-increasing-speed-that-persists-after/37693/1 "2025-07-01T16:48:46Z")

</div>

I’m attempting to make a game whering the main gimmick is pulling yourself toward places you shoot. I need a way to make speed persist after reaching the point (for things such as flinging through windows)

[The Prototype is linked here](https://arcade.makecode.com/S58876-16583-69265-82945)

Does anyone know what a good way to do this would be?

---

<div class="post-metadata">

**Author:** ![mmurray1019](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmurray1019/32/23334_2.png) [@mmurray1019](https://forum.makecode.com/u/mmurray1019)\
**Post date:** [July 1, 2025, 4:56pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-be-pulled-towards-another-with-increasing-speed-that-persists-after/37693/2 "2025-07-01T16:56:58Z")

</div>

sounds to me like you just need to assign acceleration to your sprite.

---

<div class="post-metadata">

**Author:** ![BlackRabbit1924](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blackrabbit1924/32/23331_2.png) [@BlackRabbit1924](https://forum.makecode.com/u/BlackRabbit1924)\
**Post date:** [July 1, 2025, 5:53pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-be-pulled-towards-another-with-increasing-speed-that-persists-after/37693/3 "2025-07-01T17:53:47Z")

</div>

I figured so, I’m mostly struggling with figuring out how to make sure it sends you in the right direction

---

<div class="post-metadata">

**Author:** ![mmurray1019](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmurray1019/32/23334_2.png) [@mmurray1019](https://forum.makecode.com/u/mmurray1019)\
**Post date:** [July 1, 2025, 7:49pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-be-pulled-towards-another-with-increasing-speed-that-persists-after/37693/4 "2025-07-01T19:49:33Z")

</div>

I haven’t used this extension before, but I think it would help.

> **[GitHub - jwunderl/arcade-sprite-util: A few utility functions for sprites](https://github.com/jwunderl/arcade-sprite-util)**
>
> A few utility functions for sprites

After all, this involves trigonometry, and it says in the description it’s helpful for stuff involving trig.

---

<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:** [July 1, 2025, 9:09pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-be-pulled-towards-another-with-increasing-speed-that-persists-after/37693/5 "2025-07-01T21:09:27Z")

</div>

The Sprite Utils extension has many useful blocks for dealing with velocity in any direction, as well as blocks for the distance and angle between two sprites!

---

<div class="post-metadata">

**Author:** ![mmurray1019](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmurray1019/32/23334_2.png) [@mmurray1019](https://forum.makecode.com/u/mmurray1019)\
**Post date:** [July 2, 2025, 5:12pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-be-pulled-towards-another-with-increasing-speed-that-persists-after/37693/6 "2025-07-02T17:12:30Z")

</div>

sounds like i guessed right as to it’s application then.
