Page 1 of 1

Transitioning Background When Button is Hovered

Posted: Tue May 04, 2021 7:09 pm
by birdtrappedinacage
Hello! I found a post on this topic before but it didn't exactly help me and wasn't quite what I was looking for.

I was wondering if there was a simple way (preferably using image buttons) to have the background of a screen fade to a new background when a specific button is hovered. I was hoping to do this for multiple buttons on one screen (like a character select menu that shows a preview of the character in the background when hovering over their 'select' button).

Hopefully this makes sense. ^^

Re: Transitioning Background When Button is Hovered

Posted: Wed May 05, 2021 1:25 pm
by emz911
Reference viewtopic.php?t=45661, you can show an image on screen with a transform by setting the hovered action of your image button to:

Code: Select all

Function(renpy.show, "my_image", at_list=[my_transform])
Also remember to hide the other images on hover as well.