- Jun 10, 2018
- 6,327
- 22,776
This should be simple, but I can't figure it out:
$renpy.notify("sometext")
I want notify to hide instantly when the player clicks the screen but fade when not clicked.
So I tried it with a variable:
switchClick gets set, but the notification screen still fades out. If I delete the else tree it does work, but of course it wont fade when the player does not click.
Any ideas?
$renpy.notify("sometext")
I want notify to hide instantly when the player clicks the screen but fade when not clicked.
So I tried it with a variable:
Code:
$ switchClick = False
screen notify(message):
#blabla
key "mousedown_1" action [SetVariable("switchClick",True), Hide('notify')]
if switchClick:
$ switchClick = False
transform notify_appear:
xalign .5 yalign .5
on show:
alpha 0
linear .25 alpha 1.0
on hide:
alpha 0
else:
transform notify_appear:
xalign .5 yalign .5
on show:
alpha 0
linear .25 alpha 1.0
on hide:
linear .5 alpha 0.0
Any ideas?