i would like to change the png as the <objects> health lowers but in cant figure it out???
i have the health bar from danposts senario progress bar/health bar!!
setImage("myImage.png");private int previousHealth;
previousHealth = yourVariableWhichHoldsTheCurrentHealth;
private void lookForHealthDifference()
{
if (previousHealth > yourVariableWhichHoldsTheCurrentHealth) {
setImage("myImage.png");
}
}lookForHealthDifference();
private int yourVariableWhichHoldsTheCurrentHealth