Code: Select all
screen say(who, what, side_image=None, two_window=False):
if variable1:
add "gui/exclamation dark.png" xalign .97 yalign 0.03
Code: Select all
screen say(who, what, side_image=None, two_window=False):
if variable1:
add "gui/exclamation dark.png" xalign .97 yalign 0.03 at exclamationfade
transform exclamationfade:
on show:
alpha 0.0
linear 1.0 alpha 1.0
on hide:
alpha 1.0
linear 1.0 alpha 0.0
Code: Select all
transform exclamationfade:
on show:
linear 1.0 alpha 1.0
on hide:
linear 1.0 alpha 0.0
I want the image to fade in once when the variable changes to true, then fade out when the variable changes to false. How can I accomplish this?