Say, i want to make this interaction in the vnovel: while a certain label is being ran, if it is not finished in under x seconds, the game jumps to a different designated label. Now, i did dig up something about timers in Renpy, but those timers are only ran through screens - as in, i havent seen a single script that has them running in the background, which is exactly what im looking for. I was wondering if its even possible with Renpy, so help would be appreciated.
I also want to clarify that im a totes amateur in Renpy, so properly resetting the timer in case the label has actually been finished in under x seconds may be a bit problematic for me as well.
This is my current code, which, of course, doesnt work:
Code: Select all
label current_cutscene:
$ time = x
$ timer_range = x
$ timer_jump = 'cutscene'
# the events of the label are being ran #
jump current_cutscene_continuation
label cutscene:
# the label that is only ran in case the timer that is running in the background activates before the previous label is finished #
label current_cutscene_continuation:
# here, im trying to reset/stop the timer, my best guess is calling a reset label like $ timer = None #
# ...