MV DamagePopup should follow the Battler, don't u think so, too?

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):

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();
        }
    }
};
It is very common to show the damage popup where the hit strikes, and then in some games move upwards from there, instead of actually following hit character around.

That doesn't mean your game has to work like that too, though. Just saying it is not bad if it does work like this. I think this is as intended.
If your battlers have so much movement, that you actually think about having the dmg popup follow the battler, the dmg popup will just become hard to read and be redundant.
Readablity is the most important part of a dmg popup imho. if you can't even read the numbers right, it might as well not exist.
If your battlers have so much movement, that you actually think about having the dmg popup follow the battler, the dmg popup will just become hard to read and be redundant.
Readablity is the most important part of a dmg popup imho. if you can't even read the numbers right, it might as well not exist.
I use a regular Yanfly Action sequence, that moves the player to the enemy for a melee strike and a regular poison. It's not a lot of movement, only forth and back. But while backing the poison activates because it's the battlers turn end.
That sounds like your timing is just not good. I assume you use the "default" finish action like this.
<finish action>
immortal: targets, false
wait for new line
clear battle log
perform finish
wait for movement
wait for effect
action common event
</finish action>
Try returning your actors home via move user: home. Reset camera, zoom and all that before "perform finish".
That way, the turn ends when every actor is back in their original location, then the poison procs.
That sounds like your timing is just not good. I assume you use the "default" finish action like this.
<finish action>
immortal: targets, false
wait for new line
clear battle log
perform finish
wait for movement
wait for effect
action common event
</finish action>
Try returning your actors home via move user: home. Reset camera, zoom and all that before "perform finish".
That way, the turn ends when every actor is back in their original location, then the poison procs.
<finish action>
clear battle log
immortal: targets, false
perform finish

wait for movement // this line fixed the issue

</finish action>

Sometimes the simplest fixes are the best. I can't believe I didn't think about that xD. I guess I’ve been too focussed to figure out where to adjust the damagePopup x and y axis.
it's like that sometimes. yes wait for movement can also fix it. Using like the "Evade" motion to manually return your battlers home makes it look a little nicer, which is I suggested it.
Moved to: Plugin Support

Original thread: https://forums.rpgmakerweb.com/threads/damagepopup-should-follow-the-battler-dont-u-think-so-too.151594/