Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
screen show_tooltip:
if buttonAppears == False:
timer 100.0 action Show("tooltip_button")
$buttonAppears = True
else
hide screen tooltip_button # <--- The error occurs here when I use 'Hide screen'
hide screen function_tooltipButton # <--- The error also occurs here
$buttonAppears = False
screen tooltip_button:
mousearea:
area (690, 575, 1.0, 1.0) #xpos, ypos, width, height
hovered Show("function_tooltipButton", transition=dissolve)
unhovered Hide("function_tooltipButton", transition=dissolve)
screen function_tooltipButton:
imagebutton:
idle "sozai/ui/load1.png"
hover "sozai/ui/load2.png"
xpos 700 ypos 560
clicked ShowMenu("save")
EDIT: Also, I have one other question. How do you assign a value to a variable after clicking an button? For example I wanted to do something like this:
screen function_tooltipButton:
imagebutton:
idle "sozai/ui/load1.png"
hover "sozai/ui/load2.png"
xpos 700 ypos 560
clicked $userClickedTheButton = True # <------- How do I do this for Screen language statements?