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
Cya~
Window Show Transitions [SOLVED]
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.
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.
-
- Newbie
- Posts: 20
- Joined: Sat May 04, 2013 1:12 pm
- Projects: The Taleweaver's Curse
- Location: London
- Contact:
Window Show Transitions [SOLVED]
Last edited by ayo on Mon Aug 05, 2013 3:54 pm, edited 1 time in total.
- 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
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(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Miko-Class Veteran
- Posts: 892
- Joined: Sun Jan 01, 2012 4:09 am
Re: Window Show Transitions
Is this what you're looking for?
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.
Code: Select all
## Used when switching between NVL and ADV modes.
config.adv_nvl_transition = dissolve
config.nvl_adv_transition = dissolve
-
- Newbie
- Posts: 20
- Joined: Sat May 04, 2013 1:12 pm
- Projects: The Taleweaver's Curse
- Location: London
- Contact:
Re: Window Show Transitions
Unfortunately it doesn't work - not too sure if I'm doing it right though...
Here's my code for the options.rpy:
Here's my code for the script.rpy:
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.
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
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
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.
-
- Newbie
- Posts: 20
- Joined: Sat May 04, 2013 1:12 pm
- Projects: The Taleweaver's Curse
- Location: London
- Contact:
Re: Window Show Transitions
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~
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~
Re: Window Show Transitions
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."
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.
-
- Newbie
- Posts: 20
- Joined: Sat May 04, 2013 1:12 pm
- Projects: The Taleweaver's Curse
- Location: London
- Contact:
Re: Window Show Transitions
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
~For the final time, thanks everyone for answering to my question now it is solved
Who is online
Users browsing this forum: Google [Bot]