In the game I'm working on, I wanted the "letterbox" effect on the sides when in fullscreen to be white, since the edges of my background images were already white, and this would make it look quite nice on fullscreen no matter the screen size. So I used this code—
Code: Select all
define config.gl_clear_color = "#000"However, there are a few times throughout the game where I have a completely black screen, and in these cases, the white letterbox ends up looking quite weird and immersion-breaking. I was wondering if there was anyway to update the "config.gl_clear_color" to be black just for these instances. I tried sticking the code in as-is, and it broke the game. This coupled with this description from the config page—"Changing configuration variables outside of init blocks can lead to undefined behavior."—is leading me to believe that it's not possible to update this mid-game, but I wanted to check and see if anyone had any additional insight into this.
Thanks in advance for any help!