How to play action when imagebutton is hovering? [ solved ]
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.
How to play action when imagebutton is hovering? [ solved ]
I need to make a imagebutton, who'll do action when she'll be hovered.
Last edited by bueraque on Tue Jan 08, 2019 12:28 pm, edited 1 time in total.
Re: How to play action when imagebutton is hovering?
Try something like
https://www.renpy.org/doc/html/screens.html#imagebutton
https://www.renpy.org/doc/html/screen_actions.html
Code: Select all
screen my_scr():
default txt = "???"
text txt size 35 align(0.5,0.05)
imagebutton:
idle "idle_img.png"
hover "hover_img.png"
action Jump("Start")
hovered SetScreenVariable("x", "^-^")
unhovered SetScreenVariable("x", "???")
label start:
"..."
show screen my_scr
"... ..."
"?"https://www.renpy.org/doc/html/screen_actions.html
Who is online
Users browsing this forum: Google [Bot]