text box question

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
Candle
Regular
Posts: 34
Joined: Thu Mar 08, 2007 1:46 pm
Contact:

text box question

#1 Post by Candle » Tue Mar 13, 2007 1:07 pm

How do you do the test box like this one here
http://lemmasoft.renai.us/forums/viewtopic.php?t=1545
And how can you change the x and y position of the image on screen?
Administrator @ Adventure Maker

User avatar
DaFool
Lemma-Class Veteran
Posts: 4171
Joined: Tue Aug 01, 2006 12:39 pm
Contact:

#2 Post by DaFool » Tue Mar 13, 2007 1:33 pm

If I remember correctly, that's called "Two-Say" style. Where the name comes in its own bubble. The Ren'Py tutorial should have a demonstration of that.

The actual window textbox can be a png image you edit yourself.

You can change X and Y position using at (coordinates) clause. Better check the Ren'Py tutorial for the exact syntax, as I'm going from vague memory recall here. But it is better to just standardize your images so that their vertical size is the same...that way you can just use

show image at left
show image at right

User avatar
Candle
Regular
Posts: 34
Joined: Thu Mar 08, 2007 1:46 pm
Contact:

#3 Post by Candle » Tue Mar 13, 2007 1:51 pm

Was kind of looking for this but can't seem to find it anywhere.
A user can define their own positions, but that's outside of the scope of this quickstart.
Administrator @ Adventure Maker

User avatar
DaFool
Lemma-Class Veteran
Posts: 4171
Joined: Tue Aug 01, 2006 12:39 pm
Contact:

#4 Post by DaFool » Tue Mar 13, 2007 2:08 pm

To answer first question...

Code snippets taken directly from the tutorial game.

Not exact, but getting close to the style:

Code: Select all

    # Two-window mode.
    $ etwo = Character('Eileen',
                       color="#c8ffc8",
                       show_two_window=True)
but you have to set this roundrect option as well (most probably in a separate options file)

Code: Select all

        theme.roundrect(

            ## If this is True, the in-game window is rounded. If False,
            ## the in-game window is square.
            rounded_window = True,
To answer second question, another code snippet from Eileen's tutorial game:

Code: Select all

    $ logopos = Position(xpos=.5, xanchor=0, ypos=50, yanchor=0)

Code: Select all

    show eileen happy at left
    with move
    show logo base at logopos

User avatar
Candle
Regular
Posts: 34
Joined: Thu Mar 08, 2007 1:46 pm
Contact:

#5 Post by Candle » Tue Mar 13, 2007 2:10 pm

Thank you that helps a lot.
I tend to look at the help files and not the template games that come with the program.
Administrator @ Adventure Maker

Post Reply

Who is online

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