I'm just cleaning up my game for release, and would like to centre align the text on the say screen. With my basic knowledge of Python, I had imagined I could do something like this:
Code: Select all
text "f{what : ^82} id "what" pos(450,140)
but this just complains about the what string not being identical to blah blah and I still don't understand that error message. Who cares if it's not identical - just do what I ask you already, RenPy
Anyway, I've got the text centred by doing this:
Code: Select all
text what id what pos(450,140) xalign 0.6
but this seems to ignore the position element and just aligns the text with the centre of the screen. If the string is long enough, it overlays the side image of the sayer on the left of the screen. What I want is to align the text within a box. The box would extend from the right side of the side image to the right side of the screen.
Any help would be appreciated, because although my game works and the text is displayed, I feel that it's messy and looks strange when somebody just says two words and they appear left aligned flush against the side image with a massive blank space to the right.