Display multiple lines of dialogue simultaneously

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
User avatar
umineko
Regular
Posts: 52
Joined: Sun Jan 09, 2022 7:12 am
Projects: Ikimashou!
Organization: Bagel Poutine
itch: umineko-chan.itch.io
Contact:

Display multiple lines of dialogue simultaneously

#1 Post by umineko »

I was wondering if there was a way to make multiple lines of dialogue appear simultaneously, something like this subtitled text?
ezgif.com-gif-maker (2).gif
I hear Multiple Character Dialogue does this, but it places an extra textbox.


Thank you in advance!
"I like kemomimi and I cannot lie."

User avatar
m_from_space
Miko-Class Veteran
Posts: 957
Joined: Sun Feb 21, 2021 3:36 am
Contact:

Re: Display multiple lines of dialogue simultaneously

#2 Post by m_from_space »

Multiple Character Dialogue might be the solution though. Just create different styles for the say screens to position the lines at different places. You also could create your own "multiple_say" screen, that handles those lines.

https://www.renpy.org/doc/html/multiple.html

Best way would be to do it with your own multiple_say screen I think (this example only accounts for 2 lines):

Code: Select all

screen multiple_say(who, what, multiple):

    if who is not None:
        text who id "who"

    vbox:
        if multiple[0] == 2:
            null height 20
        text what id "what" line_spacing 20
        
label start:
    e "This is Eileen." (multiple=2)
    e "(another language)" (multiple=2)    
edit: Included line_spacing to account for line breaks.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]