#effects:
transform alpha_dissolve:
    alpha 0.0
    linear 0.5 alpha 1.0
    on hide:
        linear 0.5 alpha 0
    # This is to fade the bar in and out, and is only required once in your script

screen countdown:
    timer 0.01 repeat True action If(time > 0, true=SetVariable('time', time - 0.01), false=[Hide('countdown'), Jump(timer_jump)])
    bar value time range timer_range xalign 0.5 yalign 0.9 xmaximum 900 at alpha_dissolve # This is the timer bar.


define hide_textbox = Character(None,window_background=None)
define flash = Fade(0.1, 0.0, 0.5, color="#fff")
define flash2 = Fade(0.1, 0.0, .9, color="#fff")
define redflash = Fade(0.1, 0.0, 0.5, color="#FF2400")
define fadehold = Fade(0.5, 1.0, 0.5)
#
transform bottom_to_top():
    yanchor 1.0 ypos 1.0 xanchor 0.5 xpos 0.5
    linear 6.0 yanchor 0.0 ypos 0.0
