Hello,
I have a bug I'm trying to fix myself unsuccessfully so I was wondering maybe someone has already encounter that bug.
The bug is that an annoying screen is often refusing to hide on its own (not all the time). On the other hand, this only happens when the player is in "fast forward" (holding the "ctrl" key or having pressed the "tab" key by default in Renpy).
When the game passes very quickly on this screen (objective_discovered), it often happens to remain displayed indefinitely and I do not understand why.
(the picture ObjectiveNotify_Discovered_A.png). Here is the part of the code most likely to produce this bug :
And here is an other screen producting the same strange behavors (exactly the same bug):
So if anyone here have any idea from where this strange behavour is comming from don't hesitate to give me an hint !
Thank you!
I have a bug I'm trying to fix myself unsuccessfully so I was wondering maybe someone has already encounter that bug.
The bug is that an annoying screen is often refusing to hide on its own (not all the time). On the other hand, this only happens when the player is in "fast forward" (holding the "ctrl" key or having pressed the "tab" key by default in Renpy).
When the game passes very quickly on this screen (objective_discovered), it often happens to remain displayed indefinitely and I do not understand why.
(the picture ObjectiveNotify_Discovered_A.png). Here is the part of the code most likely to produce this bug :
Code:
screen objective_discovered:
add '0-0 Objective_discovered' at _notify_objectives
timer 4.0 action Hide('objective_discovered')
screen objective_updated:
add 'gui/ObjectiveNotify_Updated.png' at _notify_objectives
timer 3.5 action Hide('objective_updated')
screen objective_accomplished:
add '0-0 Objective_accomplished' at _notify_objectives
timer 4.0 action Hide('objective_accomplished')
transform _notify_objectives:
on show:
xpos 0.45
ypos 0.00
alpha 0.5
zoom 0.20
linear 0.5 ypos 0.02 alpha 1.0 zoom 0.75 xpos 0.35
on hide:
linear 1.0 zoom 0.00 ypos 0.00 alpha 0.0 xpos 0.45
Code:
screen notify_custom(message, img = None):
zorder 100
style_prefix "notify"
frame at notify_appear:
has hbox
if img:
add img yalign 0.5
text "[message!t]" yalign 0.5
timer 3.3 action Hide('notify_custom')
transform notify_appear:
on show:
alpha 0
linear .25 alpha 1.0
on hide:
linear .5 alpha 0.0
Thank you!