How to disable transition skip?

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
Jogabba
Newbie
Posts: 7
Joined: Thu Dec 07, 2017 8:09 pm
Contact:

How to disable transition skip?

#1 Post by Jogabba »

Hello, I am pretty new to Ren'py and I have a kinda basic question.

Is there any way to prevent the user from skipping a transition with a click? I have some dissolves between scenes that look really weird if the player can just skip them by clicking.

Thanks for your help!

Nero
Veteran
Posts: 248
Joined: Tue Aug 09, 2016 2:59 pm
Contact:

Re: How to disable transition skip?

#2 Post by Nero »

You can use this:

Code: Select all

$ renpy.pause(5.0, hard=True)
Change the number of seconds as you like.

Jogabba
Newbie
Posts: 7
Joined: Thu Dec 07, 2017 8:09 pm
Contact:

Re: How to disable transition skip?

#3 Post by Jogabba »

Thank you, but it does not seem to work.

If I have a background and try to replace it with:

Code: Select all

show bg park with fade
$ renpy.pause(3, hard=True)
I still can skip this fade by just clicking it. Also, three seconds of pause are added after skipping the transition, so it looks like a weird mini-freeze.

I've looked into ATL transforms and they seem to respect renpy.pause, though. But I can't figure how to make a fade effect with an ATL transform, though.

Nero
Veteran
Posts: 248
Joined: Tue Aug 09, 2016 2:59 pm
Contact:

Re: How to disable transition skip?

#4 Post by Nero »

How about this?

Code: Select all

    show bg park
    $ renpy.transition(Fade(0.0, 0.5, 0.5))    
    $ renpy.pause(2, hard=True)

Jogabba
Newbie
Posts: 7
Joined: Thu Dec 07, 2017 8:09 pm
Contact:

Re: How to disable transition skip?

#5 Post by Jogabba »

Okay, that works perfectly. Thank you very much!

Post Reply

Who is online

Users browsing this forum: No registered users