Ren py House Inside

s2smakinesi

New Member
Jul 16, 2020
4
0
How can I do like that in game ? When mouse on the door It's turn the green . Player knows he can go there when click the door. I did normal door and green dor but how can I do in Ren Py ? koridor1sabah.png koridor1sabah_2.png koridor1sabahhover.png
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,317
15,207
How can I do like that in game ? When mouse on the door It's turn the green . Player knows he can go there when click the door. I did normal door and green dor but how can I do in Ren Py ?
As shown on the thread you created after this one, you found the answer. But it would have been good to say here what it is. There's people that one day will have the same question than you, and found your message during their search...

So the answer is to use the hover attribute of the screen statement :
hover
The image used when the button is focused.
Code:
screen whatever:

    add "images/background.jpg"

    imagebutton:
        xpos 100
        ypos 100
        idle "images/default_clickable.jpg"
        hover "images/green_clickable.jpg"
        action [WHATEVER IS TO DO WHEN CLICKED]