some configurations for each character

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
Kia
Miko-Class Veteran
Posts: 930
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Skype: KiaAzad
Contact:

some configurations for each character

#1 Post by Kia » Thu Sep 25, 2014 8:46 am

there is two line of code I use for positioning chat elements in "option.rpy" and I wonder if there is any equivalent for them to use in character definition code?

Code: Select all

style.say_who_window.xfill=True
and

Code: Select all

style.say_who_window.bottom_margin = -10
I like to have different values for each character if possible. 8)

User avatar
Kaen
Regular
Posts: 148
Joined: Tue Oct 16, 2012 10:49 pm
Contact:

Re: some configurations for each character

#2 Post by Kaen » Thu Sep 25, 2014 12:46 pm

When you declare a character, you can add some configurations to it:

Code: Select all

$ outline = Character(None,
    what_size=20, #Font size
    what_xalign=0.5, #Centers text within the window
    window_xalign=0.5, #Centers the window horizontally
    window_yalign=0.5, #Centers the window vertically
    what_text_align=0.5, #Centers text within the window, just in case
    window_background=None,#Removes the window, so only the text shows
    what_outlines=[(3, "#000000", 2, 2), (3, "#282", 0, 0)],
    #Gives an outline
    what_slow_cps=20 #Speed at which the text appears (slow)
)
Maybe you find more interesting info here.

User avatar
Kia
Miko-Class Veteran
Posts: 930
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Skype: KiaAzad
Contact:

Re: some configurations for each character

#3 Post by Kia » Thu Sep 25, 2014 4:02 pm

I've done that much but I'm trying to find something like this:

Code: Select all

define me = Character(
                    '[name]',
                    window_yminimum = 20,
                    window_background=Frame("char/me/1.png", 20, 20),
                    show_two_window=True,
                    who_xalign=0.5,
                    color="#c8ffc8"
                    who_window_xfill=True <= this option for example 
                    )

Post Reply

Who is online

Users browsing this forum: Atsyun, Imperf3kt, Jacksono