MV Progress Bar On Map That Is Layered Behind Pictures

So I need to display a progress bar on the map with a picture shown on top of it. The only plugins I’ve found for this are SDR’s Hud Maker and Galvs Variable Bar. They work great but they are layered on top of everything so my picture is hidden beneath it.

Does anyone know of an alternative plugin, method or code that I can edit/add to these plugins to change the layer? Thanks for your time.
Is there a way that you can flip a switch when the picture is shown, which in turn hides the progress bar? And then vice versa when the picture goes away?
Is there a way that you can flip a switch when the picture is shown, which in turn hides the progress bar? And then vice versa when the picture goes away?

Indeed! You can use switches to turn HUD elements on and off. He covers it at around the 6 minute mark here:

Is there a way that you can flip a switch when the picture is shown, which in turn hides the progress bar? And then vice versa when the picture goes away?
I actually need both to be present at the same time. The picture moves along the progress bar as it fills or depletes.
Can you screenshot what you're trying to do? Or compile a mockup of what you want to happen?
I need this white circle to be on top of the red bar instead of behind it. I can’t use Hud Maker to place the image because I need it to move when a variable is changed.
B2124A6B-B442-4699-B96D-A5B64A2AEFB9.jpeg

I looked into the code of Hud Maker and Galvs Variable Bar but I couldn’t figure out how to change the layer the gauges are drawn on. I figured this might be easy for someone who knows JavaScript.
There is an option in HUD Maker to change layers. I can post a screenshot when I get home. But you can in fact put the picture on top of the bar and give them the same conditions so they move together
I know there are layers in Hud Maker but they will always be on top of pictures shown with the default show pictures command.

There is a way to make pictures move smoothly with Hud Maker? I know you can animate pictures but there are no conditions to make animations play. Pictures are either animated or not.
Well, you could always do something like this:
  1. Convert the picture to a HUD maker element and place it at a higher layer than the bar.
  2. Instead of a sliding picture, create the illusion of it moving at intervals. This involves making a duplicate element for every 1, 5, 10, or 25% (etc) of the bar until every spot is filled. If you did every 1% it would look great, but take ages to set up. Not to mention potential lag, and making troubleshooting a nightmare.
  3. Link your variable to each picture element, causing the appropriate ones to be either on or off if they meet your variable at amounts specifically coded as I will explain below. Will be using 5 as your variable ID. Just change it to the one you use.
25% intervals (5 elements)
1st element (0%): $gameVariables.value(5) >= 0 && $gameVariables.value(5) < 25;
2nd element (25%): $gameVariables.value(5) >= 25 && $gameVariables.value(5) < 50;
3rd element (50%): $gameVariables.value(5) >= 50 && $gameVariables.value(5) < 75;
4th element (75%): $gameVariables.value(5) >= 75 && $gameVariables.value(5) < 100;
5th element (100%): $gameVariables.value(5) >= 100;

If you set it up properly, you should be able to adjust the variable in your game and see that the picture "moves" along the bar. Tighter intervals than 25% can be done, just with more elements involved.
Well, you could always do something like this:
  1. Convert the picture to a HUD maker element and place it at a higher layer than the bar.
  2. Instead of a sliding picture, create the illusion of it moving at intervals. This involves making a duplicate element for every 1, 5, 10, or 25% (etc) of the bar until every spot is filled. If you did every 1% it would look great, but take ages to set up. Not to mention potential lag, and making troubleshooting a nightmare.
  3. Link your variable to each picture element, causing the appropriate ones to be either on or off if they meet your variable at amounts specifically coded as I will explain below. Will be using 5 as your variable ID. Just change it to the one you use.
25% intervals (5 elements)
1st element (0%): $gameVariables.value(5) >= 0 && $gameVariables.value(5) < 25;
2nd element (25%): $gameVariables.value(5) >= 25 && $gameVariables.value(5) < 50;
3rd element (50%): $gameVariables.value(5) >= 50 && $gameVariables.value(5) < 75;
4th element (75%): $gameVariables.value(5) >= 75 && $gameVariables.value(5) < 100;
5th element (100%): $gameVariables.value(5) >= 100;

If you set it up properly, you should be able to adjust the variable in your game and see that the picture "moves" along the bar. Tighter intervals than 25% can be done, just with more elements involved.
That method had crossed my mind. It’s just not going to be practical since I need the smoothness to be at the pixel level and there will be multiple pictures on the bar. I appreciate your help though.

Original thread: https://forums.rpgmakerweb.com/threads/progress-bar-on-map-that-is-layered-behind-pictures.135314/