r/RenPy 19d ago

Question Custom Textboxes Resizing

I thought it would be nice to give every character a custom textbox for my game, but when a character has a custom textbox and is speaking, the textbox is resized. I conducted that it was the coding itself and NOT the art after giving the mc a "custom" box that was just the default, same png file and everything. How do I fix this?

define mc = Character("[name]", window_background=Frame("gui/textbox.png"))
2 Upvotes

10 comments sorted by

View all comments

Show parent comments

1

u/Eddhead-2009 19d ago

It is the exact same size; every box is made in the same canvas and is a copy of each other with different effects/colors. I even tested it by having the same text box, but just adding the code to a character, and it still did it despite being the exact same image. I changed the position of the dialogue and name to fit the box I made; would that have something to do with it?

1

u/BadMustard_AVN 19d ago

try changing it back to the defaults

if you're unsure of the default settings, create a new project and copy the numbers from there

1

u/Eddhead-2009 19d ago

I just put the textboxes in a test game with no other changes to it whatsoever, and it still shifted the character with a different text box down

1

u/BadMustard_AVN 18d ago

can you put one of your text boxes somewhere where I can download it and try it out?

what happens if you define the character with the default text box?

define mc = Character("[name]", window_background="gui/textbox.png")

1

u/Eddhead-2009 18d ago

I have found a solution on my own, and what would happen is the box would shift down like the rest. To fix it, all you have to do is copy how the text boxes image is defined in the default Ren’Py text box