I know the title might be a tad confusing but I’m looking to achieve the below effect through a script, and it should change the image positions depending on how many images there are to best look like a circle. (The below image is an example.
Hello, is you’re using adobe photoshop you do it like this!
when pressing Ctrl+t it allows you to move and change positions and allows you to rotate
click that on to allow it to work as an anchor point when you move that point so when you rotate that original image it allows you to rotate it on a pivot, I hope this helped!
I meant ingame, not in photoshop sorry.
You probably knew of this, and I’m mostly going to say this just to further the discussion, but you can find the rotational offset of the circles from one another by doing 360/Number of circles
.
Still currently looking for any possibility of rotating UIs around a custom pivot points. But all it has lead to me are feature requests so far. Will keep you posted!
That applies to an angle not position
Yes, but if you want a a radical menu like the example showed you need to do some level of math to determine the necessary degrees of rotation between each element.
The issue is this method requires a custom anchor point option to be made which Roblox doesn’t currently have. But I was trying to look into a cheaty method to get around this by any chance.
What you’re looking for is called a radial/circular array. This is easily done by calculating a few things and dividing it by the amount of objects you have. Here is an example.
Image from raymaps.com
I’ve never heard of it so I will take your word on it. But given the amount of variables required to fulfill the equations it may get a bit complex for scripting it into a game.
Their use case may be more math dependent but I’m sure you could find an easier equation. As a modeler I use radial arrays in 3D but the math is unfortunately done for me.
I haven’t read through the entire article yet but this Developer Hub (Creating a Radical Menu) post may help fill in the blanks. We may have a good lead on the solution or possibly have the solution.
Managed to rework this for my exact purpose, thanks.