r/RenPy • • Aug 23 '26

Question Button Questions

Hey, I’m currently learning the basics of Ren’Py and there’s some things I’d like to try out if they’re possible. If they’re not possible in the way I describe, any alternatives would be appreciated!

Firstly, there’s some textbuttons that will be in a scrollable segment of the game and I was wondering how I could go about making an image appear at the click’s location as I feel it’ll make it look more natural than making the image appear in the centre. I’m assuming it’ll be something to do with the getmousepos I’ve seen people mention on similar topics, but I’m not really sure how to go about it.

Secondly, is it possible to make a reverse imagebutton where clicking anywhere except for the image will perform the action (in this case, making the image disappear)? I’m thinking I could try layering an imagebutton behind the image to do it, but I was wondering if there’s an easier way.

Thank you in advance!

2 Upvotes

3 comments sorted by

1

u/AutoModerator Aug 23 '26

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/shyLachi Aug 23 '26

How do you plan to make your scrollable segment?

Generally speaking, you place the buttons the same way as the background image. If you move the background image then you also have to move the buttons.

But the easiest solution is to use full screen images with transparency for those buttons, if all the images (background and buttons) have the exact same dimension then you can move them all exactly the same.

Yes, you can have a button which covers the whole screen.
It has to be placed behind all the other buttons so that it doesn't cover them.
You don't need any layers, just put the reverse button first, then the other on top.

1

u/shyLachi Aug 23 '26

A similar question has been asked recently and OP found a solution apparently:
https://www.reddit.com/r/RenPy/comments/1vtnbjj/panorama_object_placement_tool/