[SOLVED] Yanfly - Visual HP Gauge not moving lower than certain threshold in screen?

Hello!

I'm wondering if anyone else encountered this bug before and if so, how was it fixed?

The HP bar will follow the battlers on the screen but for some reason, the bars will not go any lower than a certain line (depicted here below in pink). If the battler is below that line, the bar will remain on top of the line. I have added an arrow in purple to show where the bars should actually be.

hp.png


Additional note: I've resized the game screen to 1280 x 720 using Yanfly core engine. I've also changed the screen size values in the package.json to see if that would fix the issue... it did not.
I found my answer:

Yanfly HP gauges takes for granted that I'm using the default actor boxes at the bottom of the screen like in this picture.

Annotation 2020-07-28 125032.png


All you have to do is to comment with // the last line of the following code in YEP_X_VisualHpGauge


JavaScript:
Window_VisualHPGauge.prototype.makeWindowBoundaries = function() {
    if (!this._requestRefresh) return;
    this._minX = -1 * this.standardPadding();
    this._maxX = Graphics.boxWidth - this.width + this.standardPadding();
    this._minY = -1 * this.standardPadding();
    this._maxY = Graphics.boxHeight - this.height + this.standardPadding();
    // this._maxY -= SceneManager._scene._statusWindow.height;
};







Request can be closed.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-yanfly-visual-hp-gauge-not-moving-lower-than-certain-threshold-in-screen.124637/