Pie Timer bar

0 favourites
  • 2 posts
From the Asset Store
Tabata timer
$9.99 USD
Template for Tabata timer, fully documented in comments and video
  • Hi,

    I need some help creating the image below in C2:

    <img src="http://www.xgamedev.com/tutz/c2/circlehealth.png" border="0" />

    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 doesn?t 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.


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)