NVL and ADV transitions doesn't work or produce weird result

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
lingertail
Newbie
Posts: 2
Joined: Sun Nov 13, 2022 1:26 am
Contact:

NVL and ADV transitions doesn't work or produce weird result

#1 Post by lingertail »

I want to do a mixed ADV/NVL game and I face amount of problems in just one moment.
So what I want to do:
1. End ADV dialogue
2. Hide ADV window with dissolve
3. Change scene with fade
4. Open NVL window with dissolve
5. Print two NVL pages using nvl clear with dissolving text on page clearing
6. Return to ADV style with two dissolves (on hiding and appearing)
I tried so many ways to do this so I can't even understand what the problem is.
First of all, yes, I have this set up:

Code: Select all

init python:
    config.window_hide_transition = dissolve
    config.window_show_transition = dissolve
    config.adv_nvl_transition = dissolve
    config.nvl_adv_transition = dissolve
I tried to do something like this then:

Code: Select all

e "My beautiful ADV text"
window hide
scene bg myscene with fade
nvl show dissolve
# nar = Character(None, kind=nvl)
nar "My nvl text"
nvl clear
nvl show dissolve
nar "My second page of nvl text"
e "My second ADV text"
It works fine except for when I try to do dissolve using nvl clear + nvl show dissolve on lines 7,8 it does not dissolve only text but the whole NVL window so it looks like it appears second time. I tried to remove lines with window hide and nvl show at line 4 but it looks even worse. First ADV window disappears with dissolve, scene changes with fade and then ADV window appears and disappears and NVL window appears without any transitions.

User avatar
_ticlock_
Miko-Class Veteran
Posts: 910
Joined: Mon Oct 26, 2020 5:41 pm
Contact:

Re: NVL and ADV transitions doesn't work or produce weird result

#2 Post by _ticlock_ »

lingertail wrote: Sun Nov 13, 2022 2:00 am It works fine except for when I try to do dissolve using nvl clear + nvl show dissolve on lines 7,8 it does not dissolve only text but the whole NVL window so it looks like it appears second time.
try window auto hide instead:

Code: Select all

e "My beautiful ADV text"
window auto hide
scene bg myscene with fade
nvl show dissolve
# nar = Character(None, kind=nvl)
nar "My nvl text"
nvl clear
nvl show dissolve
nar "My second page of nvl text"
e "My second ADV text"

lingertail
Newbie
Posts: 2
Joined: Sun Nov 13, 2022 1:26 am
Contact:

Re: NVL and ADV transitions doesn't work or produce weird result

#3 Post by lingertail »

_ticlock_ wrote: Mon Nov 14, 2022 1:11 pm try window auto hide instead
Yeah, it works!
But I also removed nvl show dissolve after scene change cause it caused window appear twice.
So the final code looks like this:

Code: Select all

e "My beautiful ADV text"
window auto hide
scene bg myscene with fade
# nar = Character(None, kind=nvl)
nar "My nvl text"
nvl clear
nvl show dissolve
nar "My second page of nvl text"
e "My second ADV text"
Thank you very much. I wonder why such functional was not documented anywhere. Even no such question on this forum...

Post Reply

Who is online

Users browsing this forum: No registered users