Window Show Transitions [SOLVED]

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
ayo
Newbie
Posts: 20
Joined: Sat May 04, 2013 1:12 pm
Projects: The Taleweaver's Curse
Location: London
Contact:

Window Show Transitions [SOLVED]

#1 Post by ayo »

Hey everyone again! ^.^
Seems I'm facing another problem I can't figure out. ;(

I'm currently programming the VN "The Taleweaver's Curse" and we wanted to implement ADV and NVL mode to the gameplay. I want a dissolve transition but I can only do that for the NVL window and not the ADV window.

If you guys want to see the code then I'll post it up but once again, if you guys know anything then I would be grateful if you care to answer my question

:D

Cya~
Last edited by ayo on Mon Aug 05, 2013 3:54 pm, edited 1 time in total.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Window Show Transitions

#2 Post by PyTom »

If you do window show, it should show the last window show, rather than an ADV or NVL window.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

CheeryMoya
Miko-Class Veteran
Posts: 892
Joined: Sun Jan 01, 2012 4:09 am

Re: Window Show Transitions

#3 Post by CheeryMoya »

Is this what you're looking for?

Code: Select all

    ## Used when switching between NVL and ADV modes.
    config.adv_nvl_transition = dissolve
    config.nvl_adv_transition = dissolve
Add this to your options.rpy along with all the other config settings. Your ADV and NVL windows will now automatically use the dissolve transition when you switch between the two, you won't need to write anything else in the script. Here's more on config transitions from the documentation.

ayo
Newbie
Posts: 20
Joined: Sat May 04, 2013 1:12 pm
Projects: The Taleweaver's Curse
Location: London
Contact:

Re: Window Show Transitions

#4 Post by ayo »

Unfortunately it doesn't work - not too sure if I'm doing it right though...

Here's my code for the options.rpy:

Code: Select all


## Used when the window is shown.
    config.window_show_transition = dissolve

    ## Used when the window is hidden.
    config.window_hide_transition = dissolve
    
    config.adv_nvl_transition = dissolve
    config.nvl_adv_transition = dissolve

Here's my code for the script.rpy:

Code: Select all


label start:
    stop music

    scene bg forest with fade
    with Pause(1.0)
    window show
    
    n "The forest is quiet, save for the tramp of our mounts' hooves on the ground."
    n "Even the leaves are quiet as the wind isn't blowing through the trees enough to stir them."
    n "I glance at Lenari, my handmaiden, who is riding beside me."
    n "...She looks like a princess."
    n "That proud tilt of the head, the way her hair flows gracefully down her back, they all
       conspire to paint a picture of princess-ness."
    n "I warrant that if one were to encounter us riding through this forest, that person would
       conclude that I am the handmaiden, and Lenari the princess."
    n "I don't really mind, though."
    n "It's not something I dwell upon often."
    
    nvl clear
    
    n "I miss my friends."
    n "The last time I'd seen them was a fortnight ago."
    n "That's right - that's when I told them that I would be going to Riva and be a bride to
       someone I don't even know."
    
    window hide
    nvl clear
    
    scene black with wipedown
    with Pause(0.5)
    scene flashback white with fade
    with Pause(1.0)
    
    scene bg palace with fade
    with Pause(1.0)
    
    s "Hello."

    return

What it does is that the first scene contains NVL-Mode text, but the ADV style shows first with the transition then it quickly disappears and shows the NVL window.
The second scene the ADV dialogue just appears without the transition so I'm still kinda stuck ;(

I think I should post the project so people could download it and take a look at the script and see if I'm doing it right, to make it easier to understand.

ayo
Newbie
Posts: 20
Joined: Sat May 04, 2013 1:12 pm
Projects: The Taleweaver's Curse
Location: London
Contact:

Re: Window Show Transitions

#5 Post by ayo »

By the way, here's the link to the project. Download from: http://www.mediafire.com/download/s169s ... review.zip

It's only 6mb in total once you unzipped the file. The problem becomes clear if you run the project.

I want the game in the end to be a bit like Katawa Shoujo, where you have both NVL and ADV (not hard to do, just define it when establishing characters for the story) but the transitioning is what's messing it up.

So please, if anyone's got the solution to the problem, I'll be really grateful -- Thanks~ :D

Levrex
Veteran
Posts: 280
Joined: Mon Jun 18, 2012 12:16 pm
Contact:

Re: Window Show Transitions

#6 Post by Levrex »

Code: Select all

    nvl show dissolve
    
    n "The forest is quiet, save for the tramp of our mounts' hooves on the ground."
    # Blah, blah, blah. Blah-blah.

    n "I miss my friends."
    n "The last time I'd seen them was a fortnight ago."
    n "That's right - that's when I told them that I would be going to Riva and be a bride to
       someone I don't even know."
    
    nvl hide dissolve
    nvl clear
    
    #blahblahblah
    
    scene bg palace with fade
    with Pause(1.0)
    
    window show
    s "Hello."
Should do the trick fo' ya. Nvl show fo' nvl windows, window show fo' ADV windows.
Just don't f'get to not mix the types up.
If your question is solved, please add [Solved] to theme's name by editing its first post, so that the helpful guys out there wouldn't mistakenly think the problem is still unanswered and waste their time.

ayo
Newbie
Posts: 20
Joined: Sat May 04, 2013 1:12 pm
Projects: The Taleweaver's Curse
Location: London
Contact:

Re: Window Show Transitions

#7 Post by ayo »

Thanks everyone for the answers! I found out thanks to Levrex -- I've made a demo so if you want to download it, head over to the "The Taleweaver's Curse" Thread.

~For the final time, thanks everyone for answering to my question now it is solved ;)

Post Reply

Who is online

Users browsing this forum: Google [Bot]