Radial UI element?

I’m trying to create a UI element that essentially draws a circle around an onscreen enemy - the UI element starts at 0 degrees when the player taps the enemy and eventually grows to 360 degrees (full circle) if the player holds onto that enemy for the right amount of time.

Can anybody think of a programatic method to implement this - or am I best of creating a spritesheet?

Many thanks for your help. [import]uid: 33275 topic_id: 33138 reply_id: 333138[/import]

Best with a sprite sheet. [import]uid: 19626 topic_id: 33138 reply_id: 131577[/import]

I want it to be pretty precise i.e say the player needs to hold onto the character for 3 seconds to entirely complete the circle, and if the player momentarily lifts their finger up it begins to creep back down again and back up again when they re-press it.

Would I need to look at creating a frame for every degree of the circle?

Thanks for your input.
[import]uid: 33275 topic_id: 33138 reply_id: 131586[/import]

Best with a sprite sheet. [import]uid: 19626 topic_id: 33138 reply_id: 131577[/import]

I want it to be pretty precise i.e say the player needs to hold onto the character for 3 seconds to entirely complete the circle, and if the player momentarily lifts their finger up it begins to creep back down again and back up again when they re-press it.

Would I need to look at creating a frame for every degree of the circle?

Thanks for your input.
[import]uid: 33275 topic_id: 33138 reply_id: 131586[/import]