So I am making the upgrades for a game of mine, and one is a sprite that orbits around the player similar to the Satellites from Magic Survival (or the Guardian from Survivor.io).
The problem is, when the player has multiple spinners, I can't get them to evenly space around the player. As of right now the way the code works is that if the number of spheres is below what the player should have (since they can get more), it spawns another sphere and respaces all with a function (the function is so it doesn't keep the same instance selected)
However, it doesn't work. Can someone help? (Event screenshot is below)
spheres is a variable btw