Well, you could always do something like this:
- Convert the picture to a HUD maker element and place it at a higher layer than the bar.
- 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.
- 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.