Jump to content

Progress Bar class


terebentina
 Share

Recommended Posts

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

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

 

demo.gif

 

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.

 
Oler
Link to comment
Share on other sites

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

Hi 

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() {}
                });
  indicator.start();

 

Thanks

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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