MZ Changing image for a gauge in Theo_EnemyHPGauge

Is it possible? In the code I see it reference stuff like bitmap and sprite, but I don't really understand how it decides to create a gauge. And more important is that is it possible to change code that way so it would take an existing picture to use for a gauge?
I'm still pretty new to RPG Maker but from what I've gathered, you can definitely mess around with gauges, like the HP ones, by fiddling with the code a bit. Bitmap is a file format and sprite is a collective term for graphics in a 2D sprite based game.

With the Theo - Enemy HP Gauge plugin, it’s about changing how the gauge is drawn to use an image you like. Dig into the plugin code (open the JS in a code editor like Notepad++ or VSC) and find where it handles the gauge image, (control F should help you find the relevant line of JS), then redirect it to your own image file. It's a bit of trial and error to get it looking right, but it's doable.

Remember to respect the plugin's terms of use when you're tweaking things. Good luck with your custom HP gauge!
I'm still pretty new to RPG Maker but from what I've gathered, you can definitely mess around with gauges, like the HP ones, by fiddling with the code a bit. Bitmap is a file format and sprite is a collective term for graphics in a 2D sprite based game.

With the Theo - Enemy HP Gauge plugin, it’s about changing how the gauge is drawn to use an image you like. Dig into the plugin code (open the JS in a code editor like Notepad++ or VSC) and find where it handles the gauge image, (control F should help you find the relevant line of JS), then redirect it to your own image file. It's a bit of trial and error to get it looking right, but it's doable.

Remember to respect the plugin's terms of use when you're tweaking things. Good luck with your custom HP gauge!
But wouldn't that mean I have to convert my image to bitmap format? Or, well, how do plugin gets that image in the first place? Is it incoded in itself?
But wouldn't that mean I have to convert my image to bitmap format? Or, well, how do plugin gets that image in the first place? Is it incoded in itself?
The image must be in your game directory somewhere. If you modify the plugin .js correctly it should be possible to choose any file format or if a file format isn't specified then ant image format supporter by RPG Maker natively should work. Including bitmap, png etc.
The image must be in your game directory somewhere. If you modify the plugin .js correctly it should be possible to choose any file format or if a file format isn't specified then ant image format supporter by RPG Maker natively should work. Including bitmap, png etc.
That sounds fancy, but also kinda hard. And I am in no way a computer sawwy, so that's a bummer. If I decide to look into it and search for right code line, would you edit it for me, please?
I'm using this plugin in my project. This plugin is not using a predefined image to make the gauges. They are created programmatically.
You would have to write the required code to import your image file instead of using what this plugin creates on the fly. It sounds like it's out of the plugin original scope.
I'm using this plugin in my project. This plugin is not using a predefined image to make the gauges. They are created programmatically.
You would have to write the required code to import your image file instead of using what this plugin creates on the fly. It sounds like it's out of the plugin original scope.
Huh, I see. And, well, how hard it would be to make it use an image instead of code? (And could it still be segmented, since I like the segmented style)

Original thread: https://forums.rpgmakerweb.com/threads/changing-image-for-a-gauge-in-theo_enemyhpgauge.162758/