Making fading popups in a screen [SOLVED]
Posted: Sat Apr 13, 2024 10:20 am
I want to make popups that quickly show up and disappear, notifying you that you cant do certain actions.
I've tried doing it like below but the python part doesn't change popup_cant to false.
I've tried doing it like below but the python part doesn't change popup_cant to false.
Code: Select all
transform popup_out:
alpha 1.0
linear 0.5 alpha 0
Code: Select all
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)
Code: Select all
def get_popup_cant_go():
return "cant go popup.png"
renpy.pause(0.5)
popup_cant_go = False