How do I make it so the player can't skip a video

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.
Post Reply
Message
Author
jeonghansprince95
Newbie
Posts: 4
Joined: Sun Mar 11, 2018 1:08 am
Tumblr: jeonghansprince95
Deviantart: jeonghansprince95
itch: jeonghansprince95
Contact:

How do I make it so the player can't skip a video

#1 Post by jeonghansprince95 »

I'm just wondering how to make a player unable to skip a video when they click.

The video I want to put is an opening video, like 20 seconds long.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: How do I make it so the player can't skip a video

#2 Post by rayminator »

use this code here and adjust the 123 numbers

Code: Select all

show screen block_scr(persistent.video_1_seen, 123)
    $ renpy.movie_cutscene("video/your_video.webm")
    $ persistent.video_1_seen = True

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: How do I make it so the player can't skip a video

#3 Post by rayminator »

if you still trying to get to work i forgot this part add it just below label start

Code: Select all

screen block_scr(flag, t):
        timer t action Hide("block_scr") repeat False
        if not flag:
            key "dismiss" action [[]]

jeonghansprince95
Newbie
Posts: 4
Joined: Sun Mar 11, 2018 1:08 am
Tumblr: jeonghansprince95
Deviantart: jeonghansprince95
itch: jeonghansprince95
Contact:

Re: How do I make it so the player can't skip a video

#4 Post by jeonghansprince95 »

Ok, thanks

Post Reply

Who is online

Users browsing this forum: No registered users