/c3-fast-radial-progress-bar

Turns Mesh-compatible objects into radial progress bars!

Primary LanguageJavaScriptMIT LicenseMIT

Fast Radial Progress Bar

A lightweight radial progress bar (or radial cooldown) for Construct 3.

c3-radial-progress-bar

It has fewer features than skymen's radial progress bar, but it does have the advantage of requiring barely any polygons to draw.

A more or less direct port of my GameMaker script!

The premise

The fastest way to draw a circle is to not draw a circle:

image

Unfortunately, Construct 3 doesn't have a "triangle fan" nor "triangle list" primitive type, so we have to make-do with folding one side of a "strip" into center.

Contents

This addon adds a single behaviour that you can bind onto objects (e.g. Sprites).

The behaviour has two properties (value, max value) with matching actions to set them and expressions to get them.

It might support timelines but I have no familiarity with them.