Textbox customization

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
_sss
Newbie
Posts: 2
Joined: Tue Mar 30, 2021 3:49 am
Contact:

Textbox customization

#1 Post by _sss »

Hello,

I'm just trying to do a simple thing: I want a different textbox background for one or two characters only. So first, I updated the gui/textbox.png file to be the default for all characters. And for a few others, I tried to do this:

Code: Select all

define f = Character("F", color="#545454", window_background="gui/textbox.scroll.png")
It works but when I run a dialog like the one below:

Code: Select all

    show f face1 with dissolve
    f "Hi,  where are you going?"
    show f face2 with dissolve
    f "Let me go with you."
    show f face9 with dissolve
    f "You'll see, it's better to have company."
...between each dissolve, the default "textbox.png" is shown which isn't very clean. How can I fix that?

Thanks!

Post Reply

Who is online

Users browsing this forum: Google [Bot]