GameMaker How can I change the letterbox color from black with scripts?

G

GUGNEALTHEIOR

Guest
How can I change the black bars on the outside of the screen to any color I want, on the fly?
 
L

Lonewolff

Guest
Sorry dude, pretty sure you can't.

Do you really want black bars (or any other colour for that matter) in your game?
 
J

JapanGamer29

Guest
I just tried changing my black bars to green with the code below, and it works. :)

GML:
if (window_get_colour() != c_green)
{
    window_set_colour(c_green);
}
 

Yal

šŸ§ *penguin noises*
GMC Elder
You can also draw stuff outside the game region in the Draw GUI event, which makes them show up over the letterboxes when e.g. fullscreened. I do this in my old vertical shmup Road Warriors 2, since it's got a lot of unused space on a landscape monitor.
 
Top