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