Can speech bubble's size be edited with code (not with Shift+B) to fit the text's length and height?

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
Sirifys-Al
Newbie
Posts: 8
Joined: Sat Apr 20, 2024 3:55 pm
Contact:

Can speech bubble's size be edited with code (not with Shift+B) to fit the text's length and height?

#1 Post by Sirifys-Al »

I find it a bit inconvenient to edit bubbles during the game every time they are smaller than the text, so is there any way to set their height and width depending on the amount of text? Also the problem is that in renpy.variant('small') the text's size is bigger and I have to make bubbles too big for renpy.variant('PC') as well.
I know about this:

Code: Select all

define bubble.default_area = (14, 14, 8, 6)
But how do I use such things as x/yfit?
Thank you in advance!

Post Reply

Who is online

Users browsing this forum: Google [Bot]