ADV window comes up upon window show rather than NVL

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
Konojolras
Regular
Posts: 39
Joined: Fri Jan 10, 2014 8:53 am
Projects: Fate/Apophenia
Deviantart: colombiantwat
Location: Colombia
Contact:

ADV window comes up upon window show rather than NVL

#1 Post by Konojolras »

Alright, so I'm working on a NVL based game and just at the beginning the ADV box dissolves in rather than the NVL box.
Game starts, an ADV box fades in, disappears immediately and NVL pops in abruptly. Then I use "window hide" and NVL box fades out normally. I use "window show" again and it does so normally once more.
It is only at the very beginning of the label.

Code: Select all

label start:
    scene sunset with dissolve
    window show
    n ".................................................."
    n "................................................."
    n "..........................................................
       .................................
       ......................
       ..................
       ......................."
    nvl clear
    window hide
    window show
    n "......."
I'm probably missing something terribly obvious but it'd be a relief to fix it
Thanks.

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: ADV window comes up upon window show rather than NVL

#2 Post by OokamiKasumi »

Konojolras wrote:Alright, so I'm working on a NVL based game and just at the beginning the ADV box dissolves in rather than the NVL box.
Game starts, an ADV box fades in, disappears immediately and NVL pops in abruptly. Then I use "window hide" and NVL box fades out normally. I use "window show" again and it does so normally once more.
It is only at the very beginning of the label.

Code: Select all

label start:
    scene sunset with dissolve
    window show
    n ".................................................."
    n "................................................."
    n "..........................................................
       .................................
       ......................
       ..................
       ......................."
    nvl clear
    window hide
    window show
    n "......."
I'm probably missing something terribly obvious but it'd be a relief to fix it
Thanks.
Using window show is what's causing the problem. The program is designed to show the ADV box when that command is first called, since it's the more commonly used textbox. The way around it is to Not use 'window show' at the beginning of a label. Once the window has been in use then you can use 'window show.'

Why are you using 'window show' anyway? It's not like you actually need it. The window you need will pop up automatically. Window show is normally used for keeping a blank window on screen when text isn't in use.

Code: Select all

label start:
    scene sunset with dissolve

    nvl ".................................................."
    nvl "................................................."
    nvl "..........................................................
       .................................
       ......................
       ..................
       ......................."
    nvl clear
    window show # to keep the box on screen.

    nvl "......."
    nvl ".................................................."
    nvl "................................................."
    nvl clear
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

Post Reply

Who is online

Users browsing this forum: Google [Bot]