# Is there any way to make a sprite orbit around another one?

**URL:** <https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865>\
**Category:** Help\
**Tags:** game\
**Created:** [May 12, 2023, 11:18pm UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865 "2023-05-12T23:18:25Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![hedgehoggaming](https://avatars.discourse-cdn.com/v4/letter/h/77aa72/32.png) [@hedgehoggaming](https://forum.makecode.com/u/hedgehoggaming)\
**Post date:** [May 12, 2023, 11:18pm UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865/1 "2023-05-12T23:18:25Z")

</div>

Is there any way to make a sprite orbit around another one? im trying to have a boss fire an invisible projectile with 4 others orbiting around it in a circle. Is this possible without using the animation block?

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [May 12, 2023, 11:38pm UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865/2 "2023-05-12T23:38:37Z")

</div>

Maybe something like this?

> **[Untitled](https://arcade.makecode.com/S08914-27519-25069-71583)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

You’d almost definitely want to smooth it out a bit – e.g. maybe make it so the on game update sets a ‘target angle’ on the sprite as sprite data, and another loop that goes over and moves them towards target angle, so that they don’t just ‘snap’ to the new locations, and also add some logic for when to add new ones into the pool / make it so they aim at the player, but I tried to keep it pretty simple as a starting point 🙂

I’m using my `jwunderl/arcade-sprite-util` extension just to make the code a little simpler with ‘place at angle’ blocks / handle conversion from degrees to radians

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [May 15, 2023, 3:36am UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865/3 "2023-05-15T03:36:11Z")

</div>

Definitely! I don’t think i can show a concise solution… if you send the code I can try and add it myself!

---

<div class="post-metadata">

**Author:** ![hedgehoggaming](https://avatars.discourse-cdn.com/v4/letter/h/77aa72/32.png) [@hedgehoggaming](https://forum.makecode.com/u/hedgehoggaming)\
**Post date:** [May 15, 2023, 3:37am UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865/4 "2023-05-15T03:37:54Z")

</div>

holy hell, i fell like an idiot right now. thank you so much.

---

<div class="post-metadata">

**Author:** ![hedgehoggaming](https://avatars.discourse-cdn.com/v4/letter/h/77aa72/32.png) [@hedgehoggaming](https://forum.makecode.com/u/hedgehoggaming)\
**Post date:** [May 15, 2023, 3:37am UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865/5 "2023-05-15T03:37:57Z")

</div>

wait, YOU made arcade sprite utils? your extension is the most useful one in my project.

---

<div class="post-metadata">

**Author:** ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)\
**Post date:** [May 15, 2023, 3:39am UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865/6 "2023-05-15T03:39:24Z")

</div>

I’m so sorry… can you say this in simpler terms? Sorry…

---

<div class="post-metadata">

**Author:** ![MYR](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/myr/32/16320_2.png) [@MYR](https://forum.makecode.com/u/MYR)\
**Post date:** [December 18, 2023, 5:51pm UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865/7 "2023-12-18T17:51:01Z")

</div>

Thanks for this! This opens up a whole new world for me. I was planning on making a game similar to static [florr.io](http://florr.io), but I couldn’t figure something out to make rotation until I saw this forum.

---

<div class="post-metadata">

**Author:** ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)\
**Post date:** [December 18, 2023, 6:50pm UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865/8 "2023-12-18T18:50:37Z")

</div>

I was such a noob lol

---

<div class="post-metadata">

**Author:** ![MakeCode1](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@MakeCode1](https://forum.makecode.com/u/MakeCode1)\
**Post date:** [September 5, 2024, 1:06am UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865/9 "2024-09-05T01:06:31Z")

</div>

Thank you for the help. I based this little game off of this idea, check it out if you have the time.

> **[Slash Arcade (V1.5) (Houses!)](https://arcade.makecode.com/S50256-19922-65178-72364)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![MakeCode1](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@MakeCode1](https://forum.makecode.com/u/MakeCode1)\
**Post date:** [September 9, 2024, 6:03pm UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865/10 "2024-09-09T18:03:37Z")

</div>

> **[Slash Arcade (V1.5) (Houses!)](https://arcade.makecode.com/S43327-57504-78819-88941)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![MakeCode1](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@MakeCode1](https://forum.makecode.com/u/MakeCode1)\
**Post date:** [September 10, 2024, 1:58am UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865/11 "2024-09-10T01:58:54Z")

</div>

Updated version with world map

---

<div class="post-metadata">

**Author:** ![loganisdabest](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/loganisdabest/32/20151_2.png) [@loganisdabest](https://forum.makecode.com/u/loganisdabest)\
**Post date:** [February 18, 2025, 5:49pm UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865/12 "2025-02-18T17:49:06Z")

</div>

i have created legacy florr io with some things missing like spider queen ant web triple cactus and triple stingers if you want to look at my game it may be buggy because of mobs

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [February 19, 2025, 6:36pm UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865/13 "2025-02-19T18:36:44Z")

</div>

Can you send the link? 👀

---

<div class="post-metadata">

**Author:** ![loganisdabest](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/loganisdabest/32/20151_2.png) [@loganisdabest](https://forum.makecode.com/u/loganisdabest)\
**Post date:** [March 18, 2025, 7:00pm UTC](https://forum.makecode.com/t/is-there-any-way-to-make-a-sprite-orbit-around-another-one/19865/14 "2025-03-18T19:00:26Z")

</div>

I have made florr io its fun
