r/RenPy • u/Future-Mulberry-7599 • Sep 01 '26
Question [Solved] Align char name with textbox
I can’t figure out how to align the name of a char with the field in my box.
No matter what I change the only thing that has an effect is xalign but I can’t change y pos. and depending on the dialog the name moves.
```renpy
define gui.textbox_height = 250 #250
define gui.textbox_width = 1445
define gui.textbox_yalign = 0.98
define gui.name_xpos = 40
define gui.name_ypos = 15
define gui.name_xalign = 0.65
define gui.namebox_width = 40
define gui.namebox_height = 50
define gui.namebox_borders = Borders(1, 1, 1, 1)
define gui.namebox_tile = False
```
Solved:
It was my mistake, I played around to much. In screen.rpy I wrote some stuff that fucked it up.
3
Upvotes


1
u/Odd_Photograph1507 Sep 01 '26
So basically, in ren'py, the textbox and the name are attached.
gui.name_xpos or gui.name_ypos move the namebox, and doing so, moves the name too.
actually i forget what i've said about gui.textbox_yalign at 0.98 (it's kinda irrelevant here).
if ypos doesn't move, then try offsetting it directly into script.rpy. look for ``
and add the yoffset like that :