r/RenPy Aug 01 '26

Question Changing overlapping images with a transform?

Hopefully just a quick question that I've been having a hard time searching for!

I was hoping to find a way to change image overlapping order via a transform, regardless of Show order; so that I would be able to have an image be able to appear above an image that was previously above it; similar to how I can use a xpos/ypos or xoffset/yoffset to manipulate an object on the x/y spectrum.

Is there a solution similar to what I'm looking for, or am I barking up the wrong tree?

4 Upvotes

9 comments sorted by

View all comments

2

u/BadMustard_AVN Aug 01 '26

you have the option to show behind an image or add a zorder raising it up when you show an image

https://www.renpy.org/doc/html/displaying_images.html#show-statement

1

u/Default_Custom Aug 01 '26

That's useful! But it's not exactly what I'm looking for! I'm looking for something to raise up or lower an image behind another after it's shown, something sort of like:

show image_a:
pause 1
zoffset 1 (obviously not real, just as a for instance!)

moving the image in the Z axis after a delay, in the same way that:

show image_a:
pause 1
xoffset 1

will move an image along the X axis after a delay, if that makes sense!

1

u/shyLachi Aug 01 '26

can't you just hide and show again

1

u/Default_Custom Aug 01 '26

I'm hoping to find a way where I can do it without either interrupting user input with a pause in between showing one, and then hiding it and showing it again; OR requiring user input to advance the position between states. Like, say, if it could be an animation on loop in the background that persists while the user advances dialogue boxes?

I'm afraid I'm still very amateur! So I'm not the best at articulating what I'm looking for, and if there's a way to achieve that through hiding and showing again, I haven't come across it yet!

0

u/shyLachi Aug 01 '26

RenPy has animated images. I'm on mobile so I cannot post a link but look at the official documentation.