Hello,
Using a video on YouTube, I created an image button for my visual novel. I'd like the button to turn invisible when not hovered, but I'm not sure how to do that. Can someone help? Here's the code of the button:
screen gameUI:
imagebutton:
xalign 1.0
yalign 0.0
xoffset -30
yoffset 30
idle "UI/gentleman_idle.png"
action ShowMenu ("StatsUI")
screen StatsUI:
add "UI/bg stats.png"
frame:
xalign 0.5
yalign 0.5
xpadding 30
ypadding 30
hbox:
spacing 40
vbox:
spacing 10
text "Charm" size 40
text "Respectability" size 40
text "Honor" size 40
text "Wealth" size 40
text "Prestige" size 40
vbox:
spacing 10
text "[charm]" size 40
text "[respectability]" size 40
text "[honor]" size 40
text "[wealth]" size 40
text "[prestige]" size 40
imagebutton:
xalign 1.0
yalign 0.0
xoffset -30
yoffset 30
auto "UI/return_%s.png"
action Return()
Hide image button when not hovered
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- Professor Historian
- Newbie
- Posts: 4
- Joined: Mon Sep 26, 2022 12:11 pm
- Projects: Courtship: A Dance With Love
- Discord: Professor Historian#0179
- Contact:
- Professor Historian
- Newbie
- Posts: 4
- Joined: Mon Sep 26, 2022 12:11 pm
- Projects: Courtship: A Dance With Love
- Discord: Professor Historian#0179
- Contact:
Re: Hide image button when not hovered
I found how, thanks everyone!
Who is online
Users browsing this forum: Google [Bot]