Restart

Veteran
Veteran
Joined
Mar 15, 2019
Messages
848
Reaction score
712
First Language
English
Primarily Uses
RMMV
I don't think there's a stock way of doing it, the easiest quick and dirty hack would be to change which folder it's looking at midfight and then refresh it.

This overwrites the load battlehud code so that if switch 17 is set to true, it'll change to the battlehud2 folder
Code:
ImageManager.loadBHud = function(filename) {
if (($gameSwitches.value(17) == true))
     {
    return this.loadBitmap('img/battlehud2/', filename, 0, true);
     }else{
    return this.loadBitmap('img/battlehud/', filename, 0, true);
    }
};

I *believe* that one setting one of these two variable to true will force a refresh of the battlehud and use the new images but I'm not super familiar with this plugin
Code:
$gameTemp._forceCreateBattleHud = true;
$gameTemp._refresh_Bhud = true;

Haven't tested it, check to see if it works or if the console spits out some whines.
 

shukiri

Villager
Member
Joined
Nov 6, 2018
Messages
21
Reaction score
8
First Language
english
Primarily Uses
RMMV
Thanks. The refresh bhud does nothing in this context. The force create battle HUD makes all parts of the hud just disappear (faces, commands, screen layout). I can't even tell if the folder switch is working because it's not refreshing the file with either of those two functions.

If you ignore the folder approach, I can get it to work with this, but the new image appears OVER the faces and commands.... and I'm sure this is not how you're supposed to do it...

Code:
if ($gameSwitches.value(17) == true) {
        this._screen_layout = new Sprite(ImageManager.loadBHud("Layout_Screen2"));
        this._hudField.removeChild(this._screen_layout);
        this._hudField.addChild(this._screen_layout);
    }
 

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
531
Reaction score
279
First Language
thai
Primarily Uses
RMMV
never try it myself
but I think you better check it
 

shukiri

Villager
Member
Joined
Nov 6, 2018
Messages
21
Reaction score
8
First Language
english
Primarily Uses
RMMV
Yeah, I have used that plugin before but it's for faces only, not the screen HUD background (unless I am missing something). Maybe there's a clue in there as to how to refresh an image in MOG's plugin?
 

Latest Threads

Latest Posts

Latest Profile Posts

There are so many coding terms that are complete gibberish to me. Like what the heck is "Return" or "Array"??
Sometimes I forget how tiny and fun working in 16x16 is (or with 18x18 if ya counting the white outline LOL) and before you ask Yes. Yes this is an appropriate ratio of drinks to all the other stuff. :popcorn:
f37ac128dedc8a53af7deb2b12e8ea81becf6e46.png
Phew, sleep all day, awake all night. I don't know what to draw tonight!

Does that count as poetry? ..Is there a super fast way to test my creations in RPG Maker? Has anyone played the new Pokémon games? I'm itching to buy it but I don't think my husband will want me to after he finds out how much I spent on Christmas!
When can we get this?
RPG Maker MZ Saturn.png
Saturn port when?
I'm new to rpgmaker mv, link me some good stuff to learn.

Forum statistics

Threads
117,071
Messages
1,104,310
Members
153,052
Latest member
HaxDotCombo
Top