Page 1 of 1

[solved] How can I "center" this text?

Posted: Sun Oct 14, 2018 5:45 pm
by Nanahs
This is the code:

Code: Select all

    "Where will she travel to?"
    $ answer1 = renpy.random.choice(["Paris", "London", "New York"])
    "She will travel to [answer1]."
I want both texts the be shown in the center of the screen.
But I don't know which type of code is the right one on this case.

Thanks :)

Re: How can I "center" this text?

Posted: Mon Oct 15, 2018 11:47 am
by DannX
Use the centered special character:

Code: Select all

centered "Where will she travel to?"
That will show it without any window. If you want to show the window and the text, you can instead give it an argument like this:

Code: Select all

"Where will she travel to?" (window_yalign=.5)

Re: How can I "center" this text?

Posted: Tue Oct 16, 2018 9:19 am
by Nanahs
DannX wrote: Mon Oct 15, 2018 11:47 am Use the centered special character:

Code: Select all

centered "Where will she travel to?"
That will show it without any window. If you want to show the window and the text, you can instead give it an argument like this:

Code: Select all

"Where will she travel to?" (window_yalign=.5)
Thank you so much! :)