Fixing an annoying dialogue box issue


I can't believe it took me almost 3 hours to find a solution to this due to my lack of coding skills, but the game was having a maddeningly irksome issue where transitioning out of the choice screen was causing the narrator box to briefly pop into existence before the correct box for the character would appear. (Note: the background is a placeholder made with AI which I will NOT be using in the game...I was just tired of looking a black bg until I hire an artist!)

The way this was solved, using a transparent png. This was the code I eventually added to the say screen in Renpy:

        if who is not "narrator" and not what:

            background Image("gui/transparent.png", xalign=0.5, yalign=1.0)

        else:

            text what id "what"

Basically found the answer after this post in the Lemmasoft forums from Helyees, with credit going to Errihl: https://lemmasoft.renai.us/forums/viewtopic.php?t=47830

Leave a comment

Log in with itch.io to leave a comment.