Prevent player skipping video
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.
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.
Prevent player skipping video
Is there anyway to prevent a player from clicking and skipping a video when used or a splashscreen? Mainly the video I want to know about.
Re: Prevent player skipping video
Just add line right after the video (hard=True - will make pause unskipable)
Code: Select all
$ renpy.pause(10, hard=True)
Re: Prevent player skipping video
and will the length of pause not matter, or does it have to match the length of the video?
Re: Prevent player skipping video
Of course yes. If pause will be less than video length, then player could skip video after pause end.
Re: Prevent player skipping video
I've hit another problem. It seems as though the player can't skip the pause, however if they click once, the video stops and they're forced to sit and wait for however many seconds are left looking at a black screen. Any ideas?
Re: Prevent player skipping video
Ooops... that's because I've never did it myself. And at first sight it seemed so easy to do...
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Prevent player skipping video
Doing something like:
might work.
Code: Select all
play movie "user_hate.ogv"
$ renpy.pause(15.0, hard=True)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Prevent player skipping video
Thanks, that's done it. Another query though. The player can still go to the in game menu which pauses the video so that when they return it's a black screen of nothingness. Is there any way to prevent the user from accessing the game menu during a video?PyTom wrote:Doing something like:
might work.Code: Select all
play movie "user_hate.ogv" $ renpy.pause(15.0, hard=True)
Re: Prevent player skipping video
Thankyou for all the help guys. Sorry for being such a novice
- Gear
- Miko-Class Veteran
- Posts: 764
- Joined: Tue Apr 05, 2011 10:15 pm
- Projects: Tempestus Sum
- Organization: Xenokos Interactive
- IRC Nick: Gear
- Skype: Skye.Gear
- Location: Grand Prairie, TX
- Contact:
Re: Prevent player skipping video
Thank you for asking all those questions! Now I don't have to make a topic myself, haha!
The best reason to get up in the morning is to outdo yourself: to do it better than you've ever done it before. But if you haven't done it better by nightfall... look at your globe and pick a spot: it's always morning somewhere.
Re: Prevent player skipping video
How is that different from what you were doing before (that didn't work and gave a black screen)?clannadman wrote: ↑Mon Apr 04, 2011 11:20 amThanks, that's done it.PyTom wrote:Code: Select all
play movie "user_hate.ogv" $ renpy.pause(15.0, hard=True)
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
Who is online
Users browsing this forum: Lohre