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?
Maybe something like this?
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
Definitely! I donāt think i can show a concise solution⦠if you send the code I can try and add it myself!
holy hell, i fell like an idiot right now. thank you so much.
wait, YOU made arcade sprite utils? your extension is the most useful one in my project.
Iām so sorry⦠can you say this in simpler terms? Sorryā¦