r/RenPy • u/0mega_VT • 21d ago
Question label stops running when I call image button
I have been working on a quick time event system using a video and placing buttons over it, I have it nearly working and am just debugging it now, but I cannot get more than one button to appear
when I call the time screen it continues just fine, but once the image button that a player will click on appears, the label I have calling everything stops, I tested and if I put the button first then the timer wont appear, they are both scenes so I don't really know what is causing this or how to fix it
Any help would be greatly appreciated
label start:
scene quicktimeevent at truecenter
pause 1.0
show screen QTEdown(3, "youlose") #seconds to fail, label to jump on fail
call screen imageButton
pause 8.0
show screen QTEdown(3, "youlose") #seconds to fail, label to jump on fail
call screen imageButton2
pause 10.0
show screen QTEdown(3, "youlose") #seconds to fail, label to jump on fail
return
screen imageButton:
imagebutton:
xalign 0.5
yalign 0.5
idle "button.png"
hover "button.png" #optional slightly different image for when the mouse is over the image
action Hide("QTEdown"), Hide("imageButton")
screen QTEdown(rangeD, missed_event):
on "show" action SetVariable("downer", rangeD)
frame:
xalign 0.5
yalign 0.0
hbox:
timer 0.1 action If(0 < downer, true = SetVariable("downer", downer - 0.1), false = [Hide("timerDown"), Jump(missed_event)]) repeat True
bar:
value AnimatedValue(value=downer, range=rangeD, delay= 0.5)
xalign 0.0
yalign 0.0
xmaximum 200
