How to code HUD cooldown bars

  • 22 favourites


3,322 visits, 5,291 views



This tutorial hasn't been translated.


This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

I wrote another tutorial for GameDev TutsPlus

Here is the teaser for the article :

In many games, the player needs a visual display of the time remaining before being able to perform a certain action, such as casting a spell. Cooldown bars on the HUD or UI are a great way to present this information. In this article, complete with sample code and demos, you'll learn how to implement cooldown bars in your game—no matter what engine you use.

All of the examples that illustrate the article are made in Construct2 and the capx files are commented and can be downloaded from the article.

(The "Download attachment" button on the right side of the article)

Notice it is aimed at intermediate users, but hopefully, beginners can find it useful to a certain extent. Nevertheless it's not a "follow the recipe" kind of article.

I hope you can find this article and the examples useful.


  • Order by
Want to leave a comment? Login or Register an account!