Centered Outline/Text speed problems. [Solved]

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
Sapphire-Skillz
Newbie
Posts: 11
Joined: Mon Aug 15, 2011 8:51 am
Tumblr: Kazurenai
Deviantart: Sapphire-Skillz
Contact:

Centered Outline/Text speed problems. [Solved]

#1 Post by Sapphire-Skillz »

Hi, I'm more or less a noob on renpy so forgive me for my bad use of language ^^"

1. I used the 'centered outline' code on the renpy website and only deleted the timer code on the last line, but for some reason only certain sentences are centered correctly while other lines are aligned to the left like the default setting.
Here are two printscreens of what I'm talking about.
Short sentence
Long sentence

Did I make an error somewhere?

2. Another thing is that the text advances even when I don't click anything but I haven't changed anything to make it do that in the first place? Is there something I can do to stop it?

Here's the coding of the first scene:

Code: Select all

# The game starts here.
label start:
    scene first dream at Pan((0, 0), (0, 588), 20.0)
    with dissolve
    
    $ outline = Character(None,
                          what_size=30, 
                          what_xalign=0.5, 
                          window_xalign=0.5, 
                          window_yalign=0.5, 
                          what_text_align=0.5,
                          window_background=None,
                          what_outlines=[(3, "#FFFFFF", 2, 2), (3, "#666666", 0, 0)])

    outline "{i}You know what I’ve always {size=+12}dreamt{/size} of since I was a child?{/i}"
    outline "It may be {size=+12}silly{/size} but..."
    play music "free10-Childhood.mp3" 
    outline "I've always wanted to own my own little {size=+12}café.{/size}"
    outline "Having a {size=+12}place{/size} where, after a long hard day of work..."
    outline "People can come to {size=+12}relax.{/size}"
    outline "Letting go of their troubles, problems and burdens... {size=+12}even{/size} if it's only temporary."
    outline "And for me, it would be waking up each morning, and making sure to see everyone{size=+12} smiling.{/size}"
    outline "Seeing the {size=+12}staff{/size} hard at work and the {size=+12}customers{/size} enjoying their time..."
    outline "The customers, the staff... they'd all be like one big {size=+12}family.{/size}"
    outline "I told you it's silly!"
    outline "{i}But... I really would... like one... if only, I had the {size=+12}chance{/size} to...{/i}"
    stop music fadeout 1.0
    scene black
    with dissolve
Many thanks in advance and sorry fi i've asked something stupid ><"
Last edited by Sapphire-Skillz on Mon Aug 15, 2011 1:18 pm, edited 1 time in total.

User avatar
Aleema
Lemma-Class Veteran
Posts: 2677
Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:

Re: Centered Outline/Text speed problems.

#2 Post by Aleema »

Okay, that outline code was giving me trouble. I'll assume that recent updates to Ren'Py modified some behavior that broke it. Here is an updated version for you:

Code: Select all

$ outline = Character(None,
                        what_xalign=0.5, 
                        what_yalign=0.5,
                        what_layout = "subtitle",
                        what_textalign = 0.5,
                        what_size=30, 
                        window_xalign = 0.5 ,
                        window_yalign = 0.5 ,
                        window_xfill = False ,
                        window_yfill = False ,
                        window_background=None,
                        what_outlines=[(3, "#FFFFFF", 2, 2), (3, "#666666", 0, 0)])
The problem was with the xfill. So, no, you didn't make an error somewhere. :)

About the text advancing, did you alter the "auto forward time" setting in preferences at all? (Double check) Make sure it is completely full so it doesn't advance on you.

User avatar
Sapphire-Skillz
Newbie
Posts: 11
Joined: Mon Aug 15, 2011 8:51 am
Tumblr: Kazurenai
Deviantart: Sapphire-Skillz
Contact:

Re: Centered Outline/Text speed problems.

#3 Post by Sapphire-Skillz »

Ah! Thank you very much, it works great now!
I still have lots to learn about renpy... =="

And yes, you were right... I must have changed it when I was testing the colour scheme ^^"

Thank you once again-! :'3

Post Reply

Who is online

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