Hi,
I'm going crazy trying to overlap a countdown to a video with renpy, but I'm starting to think it might not be possible.
I need the help of the experts of this forum
The code for the countdown is this:
The code used to display the video is this:
If I use this code in a "normal" scene, it's shown without problem, but using the video, it doesn't overlap.
What do you think... is there any way to do it?
Thnaks in advance!
I'm going crazy trying to overlap a countdown to a video with renpy, but I'm starting to think it might not be possible.
I need the help of the experts of this forum
The code for the countdown is this:
Code:
init -1 python:
def countdown(st, at, length=0.0):
global temps_perdu
remaining = length - st
if remaining > 5.0:
return Text("%.1f" % remaining, color="#fff", size=64), .1
elif remaining > 0.0:
return Text("%.1f" % remaining, color="#f00", size=64), .1
else:
return renpy.jump('temps_perdu')
Code:
window hide
play movie "movies/video.webm"
show movie with dissolve
pause
Code:
image countdown = DynamicDisplayable(countdown, length=10.0)
show countdown
What do you think... is there any way to do it?
Thnaks in advance!