MV How to set sprite height to start at top and not bottom

Hi! So, I'm currently editing a script by Galv (it is in their terms, I checked!) called Variable Bars. The script is pretty simple, having a graphic onscreen based on a variable, a life bar that depletes, that kind of thing.

I want to create a bar that depletes from top to bottom.

I changed the width statements to height and that alone got it working vertically, however it's depleting bottom to top, seeing as the script sets the height of the sprite, and that starts at the top. How can I reverse this? I'm hoping the question is simple enough to a javascript user to not post the script, as I don't want to share an edited script, just in case, but if more info is required, please let me know! I'd like to learn how to do this.
I don't think you can change the origin of the sprite to be somewhere else then the upper left corner. It is just the standard I know across multiple programming languages.

I would try to create the illusion of the gauge filling bottom to top by dynamically changing the y coordinate of the sprite. Something like this, maybe:
Code:
(your current way of calculating y) + (maximum height of the gauge) - (current height of the gauge)
I don't think you can change the origin of the sprite to be somewhere else then the upper left corner. It is just the standard I know across multiple programming languages.

I would try to create the illusion of the gauge filling bottom to top by dynamically changing the y coordinate of the sprite. Something like this, maybe:
Code:
(your current way of calculating y) + (maximum height of the gauge) - (current height of the gauge)
I see what you mean, but I do have an issue that my gauge is circular, as shown below. The shape wouldn't fit if I simply moved it around... If there's no changing the origin, is there a way to change it from setting the height, to outright cutting off the top? Thanks for the idea though, I'll play with it a bit. Even if it doesn't work, it's still good learning.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-sprite-height-to-start-at-top-and-not-bottom.152196/