Sidesprites & Nameboxes?

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
DespairParty
Newbie
Posts: 24
Joined: Sun Mar 02, 2014 4:52 pm
Projects: Atlantis Project
IRC Nick: DP
Contact:

Sidesprites & Nameboxes?

#1 Post by DespairParty » Sun Mar 23, 2014 4:24 pm

SETTIN IT.png
Is there any way to bump the margin/padding of the namebox over to the right a bit? The conclusion I usually see is to set the sprite on the right side of the text, but that's a little awkward when all my sprites are drawn facing that direction, and the main character can't be flipped. :/
Image

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Sidesprites & Nameboxes?

#2 Post by Donmai » Mon Mar 24, 2014 6:08 am

Do you really need the character name in a separate window? If two_window is False, the character name will use the same "what" left padding, I believe.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Stapper
Regular
Posts: 96
Joined: Wed Feb 27, 2013 9:54 pm
Contact:

Re: Sidesprites & Nameboxes?

#3 Post by Stapper » Mon Mar 24, 2014 2:11 pm

You can use xalign and xpos in the say window (in screens.rpy) for just the name box to place it where ever you want:

Code: Select all

    vbox:
        xalign 0.1 yalign 0.9
            style "say_two_window_vbox"

            if who:            
                window:
                    style "say_who_window"

                    text who:
                        id "who"  xpos 100

User avatar
thepiratebei
Newbie
Posts: 11
Joined: Sun Apr 27, 2014 7:38 pm
Projects: Strawberry Jam
Deviantart: thepiratebei
Soundcloud: beikyun
Location: Brazil
Contact:

Re: Sidesprites & Nameboxes?

#4 Post by thepiratebei » Mon Apr 28, 2014 3:44 pm

Stapper wrote:You can use xalign and xpos in the say window (in screens.rpy) for just the name box to place it where ever you want:
Sorry for putting myself in the conversation, but I'm having the same issue. The only problem is that I want to change only one name box's place (the main character's, in the case).

Is that possible?

Post Reply

Who is online

Users browsing this forum: Google [Bot]