Why the textbox doesn't move to the center?

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
Nanahs
Veteran
Posts: 310
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

Why the textbox doesn't move to the center?

#1 Post by Nanahs »

I put my text to appear in the middle of the screen.
But the textbox stayed like this (at the bottom).

Image

I went to "screens" and tried changing the position here ( xalign, yalign). But it didn't change at all, stayed at the bottom:

Code: Select all

style window:
    xalign 0.5
    xfill True
    yalign gui.textbox_yalign
    ysize gui.textbox_height

    background Image("gui/textbox.png", xalign=0.5, yalign=1.0)
Does anyone know what I'm doing wrong? hah

Thanks :)

Post Reply

Who is online

Users browsing this forum: Google [Bot], mold.FF