# Sprite rotate and follow?

**URL:** <https://forum.makecode.com/t/sprite-rotate-and-follow/29405>\
**Category:** Help\
**Tags:** game\
**Created:** [June 23, 2024, 4:23am UTC](https://forum.makecode.com/t/sprite-rotate-and-follow/29405 "2024-06-23T04:23:05Z")\
**Posts on this page:** 2\
**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:** [June 23, 2024, 4:23am UTC](https://forum.makecode.com/t/sprite-rotate-and-follow/29405/1 "2024-06-23T04:23:05Z")

</div>

I’m trying to get my boss sprite to rotate so that it is always “facing” the player while following the player. Follow works for the chase, but the boss sprite always faces the same direction.

Is there any way to have the boss sprite dynamically rotate based on the position of the player?

---

<div class="post-metadata">

**Author:** ![anon30657772](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@anon30657772](https://forum.makecode.com/u/anon30657772)\
**Post date:** [June 23, 2024, 7:14am UTC](https://forum.makecode.com/t/sprite-rotate-and-follow/29405/2 "2024-06-23T07:14:49Z")

</div>

**Yes there is! 😁**

> **I can think of two ways of doing this ...**
>
> > - We can use the boss _velocity_ to determine if they’re moving right or left like **[this](https://arcade.makecode.com/S70878-45987-29268-23348)** example. Just make sure you have a variable keeping track of their current direction!
> > - You can also use the “**[Arcade character animations](https://github.com/microsoft/arcade-character-animations)**” extension just like I did for the player in the _same example_!

Hope this helps! 🙏
