This site requires JavaScript, please enable it in your browser!
Greenfoot back

Comments for Animated Health Bar (demo)

Return to Animated Health Bar (demo)

A new version of this scenario was uploaded on Sun Sep 22 10:46:26 UTC 2013 Modified to be almost completely customizable with only a little amount of code needed.
A new version of this scenario was uploaded on Sun Sep 22 12:49:58 UTC 2013 Implemented an updateColor() method.
A new version of this scenario was uploaded on Sun Sep 22 13:55:01 UTC 2013 Added commentary.
David.BudnickDavid.Budnick

2013/11/21

How do you add a color?
ZamohtZamoht

2013/11/21

You can change the color of the bar in the constructor or by using the setColor(java.awt.Color) method. If you want to change the color depending on the current bar value you should override the updateColor() method.
A new version of this scenario was uploaded on Sun Jan 05 20:23:57 UTC 2014 Fixed string positioning.
A new version of this scenario was uploaded on Sun Jan 05 21:34:52 UTC 2014 Minor bug fixes.
DogeDoge

2014/1/5

Can I use this in some projects of mine?
ZamohtZamoht

2014/1/5

Sure. That was the point of this scenario :) Please tell me if some of the methods aren't understandable, so I can improve the commentary.
A new version of this scenario was uploaded on Sun Jan 05 21:41:48 UTC 2014 Last changes for now.
DogeDoge

2014/1/5

Alright thank you!
davemib123davemib123

2014/6/2

this looks great. I'll be using this :D
ZamohtZamoht

2014/6/3

Glad to hear that!