Create Circle using Sprites

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Raikish

Hi guys,

I’m trying to do something like in the next image:

I don’t know how to approach that. Should i create some sprite that is one portion of the circle and them find some function to spawn the portion of the circle rotating the sprite and moving it?

Any help will be really apreciated.

:bust_in_silhouette: Reply From: JulioYagami

Yes, I think you need to do this. There are seven portions, you’ll need to calculate the individual angle, as you can see below:

360º / 7 = 51,42º… ( it is the individual angle you need to make the sprites )

Once you have the sprites, I recommend you create a Node2D to hold the seven sprite nodes (this way you will have more control over the whole) and then you add the sprite nodes and change their rotation properties.