not allowing player to skip scene

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
TamakiShibo
Regular
Posts: 27
Joined: Sat Jul 07, 2018 1:24 pm
Contact:

not allowing player to skip scene

#1 Post by TamakiShibo »

i have some scenes, that i dont want to be skipped by player. so, if scene will progress after some pause, can i not allow skipping this scene?
(sorry for my english :roll: :roll: )

User avatar
kostek00
Regular
Posts: 131
Joined: Wed Mar 28, 2018 5:54 pm
Contact:

Re: not allowing player to skip scene

#2 Post by kostek00 »

Use

Code: Select all

$ _skipping = False
before line where you want skipping to be turned off. Remember to place

Code: Select all

$ _skipping = True
after the scene.

But I don't recommend forbidding player from skipping as whole. If someone will play the same scene over and over it can be annoying. I recommend using

Code: Select all

$ _skipping = not persistent.noskip
before line where you want skipping to be turned off and

Code: Select all

$ _skipping = True
$ persistent.noskip = True
after the scene.

This way only for the first time someone is seeing this scene it won't be skipable.

TamakiShibo
Regular
Posts: 27
Joined: Sat Jul 07, 2018 1:24 pm
Contact:

Re: not allowing player to skip scene

#3 Post by TamakiShibo »

kostek00 wrote: Thu Sep 27, 2018 4:32 pm Use

Code: Select all

$ _skipping = False
before line where you want skipping to be turned off. Remember to place

Code: Select all

$ _skipping = True
after the scene.

But I don't recommend forbidding player from skipping as whole. If someone will play the same scene over and over it can be annoying. I recommend using

Code: Select all

$ _skipping = not persistent.noskip
before line where you want skipping to be turned off and

Code: Select all

$ _skipping = True
$ persistent.noskip = True
after the scene.

This way only for the first time someone is seeing this scene it won't be skipable.
actually, that is not what i wanted. sorry for misunderstanding. i didnt wanted to turn skipping off, i want to not allow player to advance at all. like, for example, i have this code:
scene s1 with fade
pause(5)
scene s2 with fade

i dont want player to press lmb when they are at s1, so they wont skip that 5 second pause

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: not allowing player to skip scene

#4 Post by Imperf3kt »

$renpy.pause(5, hard=True)
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot