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.
nv "This is the first line." with Dissolve(0.4)
nv "There are also two more lines." with Dissolve(0.4)
nv "Sample Paragraph." with Dissolve(0.4)
nvl clear
with Dissolve(0.4)
nv "Here's another one." with Dissolve(0.4)
nv "It's the same haiku format." with Dissolve(0.4)
nv "What a time to live." with Dissolve(0.4)
nvl clear
with Dissolve(0.4)
I'm using the "Dissolve(0.4)" transitions so that the lines fade in instead of instantly showing up on click. As you can see, it makes the code a little bit redundant and bloated, and means I have to copy and paste the same transition onto each line.
Is there a way to automate this kind of thing, setting a default transition that lines of text are shown with? Perhaps with a config or character variable?
I'm not looking to have characters appear one-by-one. I want the entire nvl line to appear at once with the fade effect. The current code accomplishes this, and I'm not looking for a different visual effect. What I'm asking is if there is a way to make the current method less tedious to write and program.
Exactly what I needed for the nvl lines, thanks. I still wish there were a fix that also added the transition to the "nvl clear" statements, but this still helps a lot.