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

Status
Not open for further replies.

Moon_Haven

Veteran
Veteran
Joined
May 5, 2020
Messages
167
Reaction score
64
First Language
French
Primarily Uses
RMMV
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.
 
Last edited:

Moon_Haven

Veteran
Veteran
Joined
May 5, 2020
Messages
167
Reaction score
64
First Language
French
Primarily Uses
RMMV
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.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,225
First Language
Dutch
Primarily Uses
RMXP

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.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,088
Members
137,585
Latest member
Reversinator
Top