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.
I have a small image on which I'd like to display a centered text.
I figured using a frame with the image as the background would be an easy way to do that
While I can use xpos and ypos to adjust the position of the text, xalign and yalign don't seem to do anything.
What's the best way to have an image with a centered text on top?
Set frame size explicitely. By default frame will be just as large as largest child, in your case it would be as large, as contained text. Text is not moved, because there is no place for it to move.