- Code: Select all
X=creator.ehp;
Y=creator.mhp;
Z=width*X/Y;
erase(0, 0, 0, 0);
for(i=0;i<Z;i++)
{
setpen(255, 0, 0, 0, 1);
moveto(i, 0);
lineto(i, height);
}
if(creator.ehp<=0)
{
DestroyActor("Event Actor");
}
X Y and Z are creator variables, as is i. I can't figure out whats going on o.O When I hit 1 enemy, every bar jumps a little xD
EDIT:
It works fine on the first enemy.. sometimes xD?