YEP_VisualStateFX animation follows the battler. this.battler().startAnimation() follows the battler. But this.battler().startDamagePopup() does not follow the battler and the numbers hang around anywhere on the screen, if the battler moved while receiving damage. This is nuts to me. I tried fixing it for about 4 hours, but I am unable to solve this issue.
The solution probably has to do something with this function (rpg_sprites, line 545):
The solution probably has to do something with this function (rpg_sprites, line 545):
Code:
Sprite_Battler.prototype.updateDamagePopup = function() {
this.setupDamagePopup();
if (this._damages.length > 0) {
for (var i = 0; i < this._damages.length; i++) {
this._damages[i].update(); //this is where i lose my track.
}
if (!this._damages[0].isPlaying()) {
this.parent.removeChild(this._damages[0]);
this._damages.shift();
}
}
};