How to prevent text from advancing (blank) during transitions?

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
Gachapen
Newbie
Posts: 16
Joined: Sat Jan 14, 2023 12:48 pm
Contact:

How to prevent text from advancing (blank) during transitions?

#1 Post by Gachapen »

Right now my text is going blank as soon as a transition is started, I assume because it is queuing the next line, then it displays the next line as soon as the transition is over. How can I stop from text from advancing to next line until the transition is done, eliminating a blank text box?

Example:

"Hello"

show npc1 with Dissolve (2)

(text box goes blank for 2 seconds during transitions)

"Next line" (displays after transition is complete.

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

Re: How to prevent text from advancing (blank) during transitions?

#2 Post by _ticlock_ »

Gachapen wrote: Wed Aug 09, 2023 6:34 pm Right now my text is going blank as soon as a transition is started, I assume because it is queuing the next line, then it displays the next line as soon as the transition is over. How can I stop from text from advancing to next line until the transition is done, eliminating a blank text box?

Example:

"Hello"

show npc1 with Dissolve (2)

(text box goes blank for 2 seconds during transitions)

"Next line" (displays after transition is complete.
You can use transition that does not affect dialogue:
Dict Transitions

Code: Select all

define dis = { "master" : Dissolve(2.0) }

label start:
    "Hello"
    show npc1 with dis
    "Next line" 

Gachapen
Newbie
Posts: 16
Joined: Sat Jan 14, 2023 12:48 pm
Contact:

Re: How to prevent text from advancing (blank) during transitions?

#3 Post by Gachapen »

_ticlock_ wrote: Wed Aug 09, 2023 10:56 pm
Gachapen wrote: Wed Aug 09, 2023 6:34 pm Right now my text is going blank as soon as a transition is started, I assume because it is queuing the next line, then it displays the next line as soon as the transition is over. How can I stop from text from advancing to next line until the transition is done, eliminating a blank text box?

Example:

"Hello"

show npc1 with Dissolve (2)

(text box goes blank for 2 seconds during transitions)

"Next line" (displays after transition is complete.
You can use transition that does not affect dialogue:
Dict Transitions

Code: Select all

define dis = { "master" : Dissolve(2.0) }

label start:
    "Hello"
    show npc1 with dis
    "Next line" 
Thank you for responding. That does achieve the effect of skipping the blank text. However it instantly skips to the next text line. It is better than the alternative, but I would like for it to keep the first string displayed, then update to next string as soon as transition is done.

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

Re: How to prevent text from advancing (blank) during transitions?

#4 Post by _ticlock_ »

Gachapen wrote: Thu Aug 10, 2023 2:44 pm Thank you for responding. That does achieve the effect of skipping the blank text. However it instantly skips to the next text line. It is better than the alternative, but I would like for it to keep the first string displayed, then update to next string as soon as transition is done.
One option is to use extend:

Code: Select all

define dis = { "master" : Dissolve(2.0) }

label start:
    "Hello"
    show npc1 with dis
    extend "{w=2.0}{nw}"
    "Next line" 

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], giorgi1111