Why you dont change the scale of the panel?

var health=100; // Save the health to this var

panel health_pa
{
flags=visible; //make it visible
bmap="health.tga"; // Graphic
}

starter set_health
{
while(1)
{
health_pa.scale_x=health/100;
if(health_pa.scale_x<0.01)
{
health_pa.scale_x=0.01;
}
wait(1);
}
}

Regards
TSGames