Jump to content

Progress Bar class


Recommended Posts

  • 3 weeks later...
  • 5 months later...

Here's a progressbar I created for my projects: https://github.com/terebentina/VisualTimer




Feel free to use it if you need one, I released it under MIT.

Not much but I thought to give back to the community  ;)



Great work!  There is one questions I have though. I would I go about it if I wanted a more smoothly animated progress bar as opposed to the current tick animation ? Thanks in advance for your time. This might also help other who might be wondering the same.

Link to comment
Share on other sites

  • 9 months later...
  • 2 years later...


I followed your instructions to but i get error VisualTimer undefined when i did the below.  I included the VisualTimer.js in the index.html (lib/VisualTimer.js) and in the preload.js file i did this.game.load.script('VisualTimer', 'lib/VisualTimer.js');


var indicator = new VisualTimer({
                    game: this.game,
                    x: 123,
                    y: 456,
                    seconds: 60,
                    onComplete: function() {}



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...