Layering pictures and hiding part of a picture behind another.

I'm making an event that shows a mug fill up with beer. I have a picture of a clear beer mug. I have a second picture of a bubbly liquid. My goal is to move the liquid up to fill the glass, but how would I do this so the entire liquid isn't visible so it's hidden until you can see it rising up in the glass? I know how to fill the glass by moving the picture up, but I don't know how to hide the image so you can't see it.

Any thoughts on the best way to do this?
Hi there!

The picture layers by default are set according to their ID.
So a picture with a higher ID will be on top.

I guess in your case, you may have 3 pictures:
ID 1 - The back of the mug.
ID 2 - The liquid.
ID 3 - The front of the mug

1648533293084.jpeg


You see that in the picture above, the liquid is between the front and the back of the mug.
I guess that is it.
But if the liquid can overflow the mug and go to the front, then it is another story...

But that is basically how pictures are layered.
Thanks for that. Making the mug 2 layers helps solve one problem, but when I'm filling the mug the liquid picture will be way down below the actual mug and will move up to fill it in an animation (for a mini game). My goal is to have the liquid be invisible below the mug. My only thought is to put the mug on a surface or something that hides the liquid picture, but that might look awkward.
you'll need a masking picture, something that is NOT transparent and covers the outside of the mug.
theoretically this can be combined with the mug picture itself, depending on where that picture is used.

but yes, the mask is about the surrounding area to the mug, so it will depend on the rest of the map and you need a different one for each position where the mug is placed.
Thanks for the info, Andar. My initial plan was to use a picture to mask the liquid, but I was hoping I could hide it with a trick like a transparent image or something. It's good to know I'm not missing something obvious.
if you want to use 2 images, that try to use this plugin, it's simple
and effective, found [here].
That's exactly the kind of thing I was looking for. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/layering-pictures-and-hiding-part-of-a-picture-behind-another.146224/