Pie Timer bar

Get help using Construct 2

Post » Mon Apr 23, 2012 8:53 am

Hi,

I need some help creating the image below in C2:



It is for a game I'm making for a client, he wants a "Pie" timer display.

When the game starts the "pie" is full, as time runs out, the pie must become less full... I did someone similar before, using masks, and it worked well, for a half circle health bar, but that trick doesnt work for a full circle, where the angle must change to mask the white middle of the timer circle. Hope this makes sense LOL
How could I do something like this is C2? The cut-out/mask must change with time, and the time could be anything from 40-120 sec.

Tks
B
42
S
9
G
7
Posts: 58
Reputation: 7,455

Post » Mon Apr 23, 2012 9:12 am

I tried something similar last time, and what I did was I create a 'slice of pie' image and instance it a few times, with each instance rotating an incremental value until it's a complete circle. Then the timer will simply hide away each slice of the pie. It did pretty well but it was a resource hungry technique, and probably a dumb one as well.

B
27
S
9
G
5
Posts: 108
Reputation: 5,744


Return to How do I....?

Who is online

Users browsing this forum: Yura G and 20 guests