# Sprite follow othersprite but in the opposite direction

**URL:** <https://forum.makecode.com/t/sprite-follow-othersprite-but-in-the-opposite-direction/45283>\
**Category:** Help\
**Created:** [August 6, 2026, 5:10pm UTC](https://forum.makecode.com/t/sprite-follow-othersprite-but-in-the-opposite-direction/45283 "2026-08-06T17:10:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![LazerTag2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lazertag2/32/32715_2.png) [@LazerTag2](https://forum.makecode.com/u/LazerTag2)\
**Post date:** [August 6, 2026, 5:10pm UTC](https://forum.makecode.com/t/sprite-follow-othersprite-but-in-the-opposite-direction/45283/1 "2026-08-06T17:10:55Z")

</div>

![20260806-0436-36.9371087](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/b/e/be3331393a87507c5c54bcaeefe96a2671dfe494.gif)

Here depending on which magnet I click on, that’s where it’s following.  
But here:

![20260806-0438-41.7339474](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/0/9/09174bfee6363bafadbf703b20734fe1337dfa39.gif)

I kind of want it to rebel the direction, but as you can see, something is off with the rebel.  
Can someone help with just making it so that it just goes the reverse direction of where the mouse is clicking, kind of like the top image, but in reverse. Thank you.

---

<div class="post-metadata">

**Author:** ![CodaKnight](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codaknight/32/33491_2.png) [@CodaKnight](https://forum.makecode.com/u/CodaKnight)\
**Post date:** [August 6, 2026, 7:21pm UTC](https://forum.makecode.com/t/sprite-follow-othersprite-but-in-the-opposite-direction/45283/2 "2026-08-06T19:21:47Z")

</div>

You can do something like this:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/0/4/043a0661a097a68ade834bb276808b689171000c.png)

---

<div class="post-metadata">

**Author:** ![Rune](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rune/32/18951_2.png) [@Rune](https://forum.makecode.com/u/Rune)\
**Post date:** [August 7, 2026, 2:22am UTC](https://forum.makecode.com/t/sprite-follow-othersprite-but-in-the-opposite-direction/45283/3 "2026-08-07T02:22:21Z")

</div>

You could use the angle blocks in the sprite utils extension to make the character move the negative of the angle from it to the object.

---

<div class="post-metadata">

**Author:** ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)\
**Post date:** [August 7, 2026, 2:36am UTC](https://forum.makecode.com/t/sprite-follow-othersprite-but-in-the-opposite-direction/45283/4 "2026-08-07T02:36:38Z")

</div>

Can’t you just set the follow speed to be negative?

---

<div class="post-metadata">

**Author:** ![LazerTag2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lazertag2/32/32715_2.png) [@LazerTag2](https://forum.makecode.com/u/LazerTag2)\
**Post date:** [August 7, 2026, 4:42pm UTC](https://forum.makecode.com/t/sprite-follow-othersprite-but-in-the-opposite-direction/45283/5 "2026-08-07T16:42:22Z")

</div>

But that would kind of be velocity, right?

---

<div class="post-metadata">

**Author:** ![LazerTag2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lazertag2/32/32715_2.png) [@LazerTag2](https://forum.makecode.com/u/LazerTag2)\
**Post date:** [August 7, 2026, 5:05pm UTC](https://forum.makecode.com/t/sprite-follow-othersprite-but-in-the-opposite-direction/45283/6 "2026-08-07T17:05:22Z")

</div>

No, that won’t work. That was my first thought. What I am showing above is me using the following block.

---

<div class="post-metadata">

**Author:** ![Rune](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rune/32/18951_2.png) [@Rune](https://forum.makecode.com/u/Rune)\
**Post date:** [August 7, 2026, 6:10pm UTC](https://forum.makecode.com/t/sprite-follow-othersprite-but-in-the-opposite-direction/45283/7 "2026-08-07T18:10:31Z")

</div>

It would be, but if you set it every frame it should account for a change in direction

---

<div class="post-metadata">

**Author:** ![LazerTag2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lazertag2/32/32715_2.png) [@LazerTag2](https://forum.makecode.com/u/LazerTag2)\
**Post date:** [August 8, 2026, 1:13am UTC](https://forum.makecode.com/t/sprite-follow-othersprite-but-in-the-opposite-direction/45283/8 "2026-08-08T01:13:17Z")

</div>

I tried that and it worked, thank you so much.
