can multiple character's text appear 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
zoranac
Newbie
Posts: 11
Joined: Fri Aug 31, 2012 4:39 pm
Projects: Forest's Sorrow
Contact:

can multiple character's text appear simultaneously?

#1 Post by zoranac »

I am wanting to have 2 character's text appear on screen at the same time, one at the top and one at the bottom. I only really need one to have a character name appear. I was wondering if there is a way Ren'py allows for this or not. Thanks for the help!

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: can multiple character's text appear simultaneously?

#2 Post by nyaatrap »

I have a code to show 2 message boxes. If dialogue has "|", it splits into 2 and shows one on the left and the other on the right. It needs a bit of customization so the knowledge of the screen language is required.

Code: Select all

screen say:
        if not what.find("|") == -1:
            window:
                area (32,536,512,200)
                id "window"

                if who:
                    text who.split("|")[0] id "who" ypos -0.2
    
                text what.split("|")[0] id "what"
                
            window:
                area (640,536,512,200)
                id "window"

                if who:
                    text who.split("|")[1] id "who" ypos -0.2
    
                text what.split("|")[1] id "what"

Code: Select all

label start:
    "Char1|Char2" "hello|hi"

User avatar
zoranac
Newbie
Posts: 11
Joined: Fri Aug 31, 2012 4:39 pm
Projects: Forest's Sorrow
Contact:

Re: can multiple character's text appear simultaneously?

#3 Post by zoranac »

Wow! I played with it a little and think I should be able to work with that, Thanks a bunch, this was a great help!

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: can multiple character's text appear simultaneously?

#4 Post by xavimat »

Very interesting, nyaatrap, I'm going to use this also. Thanks!
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: No registered users