Megaman Health bar - Canvas
Posted: Wed Apr 28, 2010 8:06 pm
Hi guys if you owuld like to use this you can it's a megaman styled health bar It's made with a canvas so no images are needed, but the font used in the demo is :3
the code in draw actor.
here's the demo
the code in draw actor.
- Code: Select all
erase(0, 0, 0, 1);
for (line2=0;line2<hpmax;line2++)
{
setpen(0, 0, 0, 0, 1);
moveto(0, (hpmax)-line2);
lineto(width-1, (hpmax)-line2);
}
for (line=0;line<hp;line++)
{
setpen(255, 255, 0, 0, 1);
moveto(0, (hpmax)-line);
lineto(width-1, (hpmax)-line);
}
for (design=0;design<hpmax;design+=2)
{
setpen(0, 0, 0, 0, 1);
moveto(0, (hpmax)-design);
lineto(width-1, (hpmax)-design);
}
here's the demo