AS3 Enemy HP bars
I don't know a lot about coding, but I know that when this line of code links back to protected function drawHpBar it isn't picking up the _local_ variables (I know that Local Variables only exist within a function)
How do I go about making this work?
How do I go about making this work?
Code:
if (((((((((this.props_) && (((this.props_.isEnemy_) || (this.props_.isPlayer_))))) && (!(this.isInvisible())))) && (!(this.isInvulnerable())))) && (!(this.props_.noMiniMap_)))) {
_local_9 = ((_local_4.getPixel32((_local_4.width / 4), (_local_4.height / 4)) | _local_4.getPixel32((_local_4.width / 2), (_local_4.height / 2))) | _local_4.getPixel32(((_local_4.width * 3) / 4), ((_local_4.height * 3) / 4)));
_local_10 = (_local_9 >> 24);
if (_local_10 != 0) {
hasShadow_ = true;
if (Parameters.data_.HPBar) {
this.drawHpBar(_arg_1, _arg_3);
}
}
else {
hasShadow_ = false;
}

