Page 1 of 1

Megaman Health bar - Canvas

PostPosted: Wed Apr 28, 2010 8:06 pm
by Hblade
Hi guys if you owuld like to use this you can it's a megaman styled health bar :D 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.
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
Megaman HP Bar.zip
(5.37 KiB) Downloaded 171 times


screen.JPG