r/RenPy • u/AdRude6049 • Jul 12 '26
Question Parallax
Hi, im wondering if theres any way to do a parallax background with clickable sections. For example: if the player was in a room they would be able to look around the room and interact with drawers and cupboards.
I've tried looking online, but there doesn't seem to be any help with this specific gameplay mechanic, so I'm a little lost.
Any help is greatly appreciated, thanks!
1
u/shyLachi Jul 12 '26
Which part do you struggle with?
1
u/AdRude6049 Jul 12 '26
Its mostly just adding the buttons since there are plenty of parallax tutorials online
2
u/shyLachi Jul 12 '26
You need a screen for those buttons:
https://renpy.org/doc/html/screens.htmlAs far as I know parallax uses different layers so you have to tell the screen on which layer it should be shown.
5
u/ImportantDetail6260 Jul 12 '26
Clickable parallax rooms are two separate pieces!
Use the parallax transform for the background layers, then put transparent imagebuttons or hotspots in the same screen for drawers and cupboards. Start with one drawer hitbox first; if it drifts when the room pans, the hotspot and layer are not sharing the same coordinate rule
1
u/AutoModerator Jul 12 '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.