Hey guys,
Still no success, perhaps someone can help me out, I have this code on the 'energyBar' graphic:
onClipEvent(load){
var energy = 100;
var maxenergy = energy;
}
onClipEvent(enterFrame){
energyBar._xscale = (energy / maxenergy) * 100;
}
I can't tell if its working or not, also when I want to make the health go up or down on certain frames I am trying to use:
onClipEvent(load){
energy -= 10;
}
on the health bar layer and graphic, am I doing this correctly?
Thanks again, I'm sure this is very simple for you guys but as a total novice I am finding it confusing! :)
Cheers