NVL mode transition pauses

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
User avatar
Kinmoku
Miko-Class Veteran
Posts: 591
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: VIDEOVERSE
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

NVL mode transition pauses

#1 Post by Kinmoku »

Hi all,

I'm using the new GUI and having trouble adjusting the NVL mode. I want it to dissolve in and out, but wait for the transition to fully play before the text begins to appear. It's quite off-putting seeing the NVL mode disappear with text already playing out underneath it. I know I could add a pause after every time I use NVL mode, but that would be a bit of a pain. I also want to do it into and out of NVL mode.

Here's what I have at the moment:

Code: Select all

screen nvl(dialogue, items=None):

    window:
        style "nvl_window"

        has vbox:
            spacing gui.nvl_spacing

        ## Displays dialogue in either a vpgrid or the vbox.
        if gui.nvl_height:

            vpgrid:
                cols 1
                yinitial 1.0

                use nvl_dialogue(dialogue)

        else:

            use nvl_dialogue(dialogue)

        ## Displays the menu, if given. The menu may be displayed incorrectly if
        ## config.narrator_menu is set to True, as it is above.
        for i in items:

            textbutton i.caption:
                action i.action
                style "nvl_button"

    add SideImage() xalign 0.0 yalign 1.0
    
                    
    on "show" action With(dissolve)    
    on "hide" action With(dissolve)
I tried changing "dissolve" to an ATL dissolve I made with a pause, but it didn't work. I tried adding a timer and renpy.pause too but they didn't work either. I don't know what to do :(

philat
Eileen-Class Veteran
Posts: 1912
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: NVL mode transition pauses

#2 Post by philat »

Have you tried using window show/hide and/or nvl show/hide? These take optional transitions and use empty windows.

https://www.renpy.org/doc/html/nvl_mode ... ode-window

User avatar
Kinmoku
Miko-Class Veteran
Posts: 591
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: VIDEOVERSE
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Re: NVL mode transition pauses

#3 Post by Kinmoku »

I hadn't tried this.

Window show/ hide works but nvl show/ hide doesn't - I don't understand why, or the need for both?

It's a little annoying to add this code every time I dip into NVL mode though. I was hoping there'd be a way to adjust the screen to make NVL mode dissolve in and out every time. If not, it doesn't matter, at least it works :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]