Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
screen block_scr(flag, t):
timer t action Hide("block_scr") repeat False
if not flag:
key "dismiss" action [[]]
# The game starts here.
label start:
"..."
show screen block_scr(persistent.video_1_seen, 5)
"incert video here{w=5}{nw}"
$ persistent.video_1_seen = True
"Try to play once again..."
"?"
You need to show your video instead of this textline. The trick is to show block_scr screen with unique persistent variable for each video before video starts.
show screen block_scr(persistent.video_1_seen, 5) # change 5 to the actual duration of your video in seconds
$ renpy.movie_cutscene("video/how to make this unclickable.webm")
$ persistent.video_1_seen = True