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.
if popup_cant_go == True:
add get_popup_cant_go() at popup_out
imagebutton:
auto "images/button1_%s.png"
at button1
action SetVariable("popup_cant_go", True)
screen myscreen():
textbutton "Click me!" action Notify("You clicked me.")
# you can also use it as a python function in labels etc.:
label start:
"Let's notify the user..."
$ renpy.notify("Don't forget to save your game once in a while!")
return
1) Nothing after return is executed.
2) Even if would, your use of renpy.pause is likely to cause interaction withing interaction error
3) popup_cant_go = False creates a local variable which is instantly destroyed in this case. It odes not modyfy anything.
Your best bet is to show a custom screen with a timer which hides it. SOmeting loke: