How to change the color of the black sidebars?

Every time I enter fullscreen in my game, it shows these ugly black sidebars on either side of the screen.
Screen Shot 2019-09-21 at 7.58.09 PM.png

Since I am only using two colors to create this game (and neither of them are black) this really pulls me out of my immersion. Is there any way I can at least change what color they are?

I've moved this thread to MV Support. Thank you.



That can't be done, as the black bar is the screen filling the rest of the screen with black as your game resolution is not equal to the monitor resolution. The closest fix is to go to fullscreen where it stretches the image instead, and that can cause other issues.
Moved to: MV Support

That can't be done, as the black bar is the screen filling the rest of the screen with black as your game resolution is not equal to the monitor resolution. The closest fix is to go to fullscreen where it stretches the image instead, and that can cause other issues.
I already knew what the black bars are for, and I know it's possible to change them. I just don't know how to do it in the way I want.
Technically you could have an over-sized map with blank areas around the outside, and use a large or tiled parallax image. Then those black spaces would be the parallax image.
To change the background, you will need to do a bit of CSS and HTML tinkering. Place the following in the 'fonts/gamefont.css' file. Unless you are more familiar with HTML and CSS, then you can create a separate css file and require that in the 'index.html' file in the root of the project directory. Or do whatever you please, really.

FILE > '/fonts/gamefont.css' :
Code:
/* Change 'background: color' in '#GameBackground' to whatever hex or rgb color you want. */

body {
  display: flex;
  height: 100vh;
  margin: auto;
  width: 100vw;
}

#GameBackground {
  background: color;
  display: flex;
  flex: 1 0 auto;
}

Next, open the 'index.html' file in the root directory of your project and add a 'div' with an ID of 'GameBackground' after the last 'script' tag and before the terminating 'body' tag :

FILE > '/index.html' :
Code:
        <!-- Other RPG Maker MV Scripts Above -->
        <script type="text/javascript" src="js/main.js"></script>

        <div id="GameBackground"></div>

    </body>
</html>

Save both files and now the background should be changed.

EDIT: Neat looking game, by the way!
To change the background, you will need to do a bit of CSS and HTML tinkering. Place the following in the 'fonts/gamefont.css' file. Unless you are more familiar with HTML and CSS, then you can create a separate css file and require that in the 'index.html' file in the root of the project directory. Or do whatever you please, really.

FILE > '/fonts/gamefont.css' :
Code:
/* Change 'background: color' in '#GameBackground' to whatever hex or rgb color you want. */

body {
  display: flex;
  height: 100vh;
  margin: auto;
  width: 100vw;
}

#GameBackground {
  background: color;
  display: flex;
  flex: 1 0 auto;
}

Next, open the 'index.html' file in the root directory of your project and add a 'div' with an ID of 'GameBackground' after the last 'script' tag and before the terminating 'body' tag :

FILE > '/index.html' :
Code:
        <!-- Other RPG Maker MV Scripts Above -->
        <script type="text/javascript" src="js/main.js"></script>

        <div id="GameBackground"></div>

    </body>
</html>

Save both files and now the background should be changed.

EDIT: Neat looking game, by the way!
I ended up breaking my Index.html file 😢 Probably because I don't have any coding experience. Thank you for trying to help, though. And thank you for the compliment!
@Cole_Carbert Oop! Here is what the 'index.html' file should look like (there might be slight differences depending on which version of RPG Maker MV you are using) :

Code:
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
        <meta name="viewport" content="user-scalable=no">
        <link rel="icon" href="icon/icon.png" type="image/png">
        <link rel="apple-touch-icon" href="icon/icon.png">
        <link rel="stylesheet" type="text/css" href="fonts/gamefont.css">
        <title>Original Character Contest</title>
    </head>
    <body style="background-color: black">
        <script type="text/javascript" src="js/libs/pixi.js"></script>
        <script type="text/javascript" src="js/libs/pixi-tilemap.js"></script>
        <script type="text/javascript" src="js/libs/pixi-picture.js"></script>
        <script type="text/javascript" src="js/libs/fpsmeter.js"></script>
        <script type="text/javascript" src="js/libs/lz-string.js"></script>
        <script type="text/javascript" src="js/libs/iphone-inline-video.browser.js"></script>
        <script type="text/javascript" src="js/rpg_core.js"></script>
        <script type="text/javascript" src="js/rpg_managers.js"></script>
        <script type="text/javascript" src="js/rpg_objects.js"></script>
        <script type="text/javascript" src="js/rpg_scenes.js"></script>
        <script type="text/javascript" src="js/rpg_sprites.js"></script>
        <script type="text/javascript" src="js/rpg_windows.js"></script>
        <script type="text/javascript" src="js/plugins.js"></script>
        <script type="text/javascript" src="js/main.js"></script>

        <!-- Insert the 'GameBackground' DIV here -->

        <div id="GameBackground"></div>


    </body>
</html>

Here is how the 'gamefont.css' file should look like (again, there might be small differences) :

Code:
@font-face {
    font-family: GameFont;
    src: url("mplus-1m-regular.ttf");
}

.IIV::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
    opacity: 0;
    pointer-events: none;
    width: 5px;
}

body {
  display: flex;
  height: 100vh;
  margin: auto;
  width: 100vw;
}

#GameBackground {
  background: red;
  display: flex;
  flex: 1 0 auto;
}

EDIT: If you are still having some difficulties, upload and/or paste your HTML and CSS files into the thread and I can help out.
@Cole_Carbert Oop! Here is what the 'index.html' file should look like (there might be slight differences depending on which version of RPG Maker MV you are using) :

Code:
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
        <meta name="viewport" content="user-scalable=no">
        <link rel="icon" href="icon/icon.png" type="image/png">
        <link rel="apple-touch-icon" href="icon/icon.png">
        <link rel="stylesheet" type="text/css" href="fonts/gamefont.css">
        <title>Original Character Contest</title>
    </head>
    <body style="background-color: black">
        <script type="text/javascript" src="js/libs/pixi.js"></script>
        <script type="text/javascript" src="js/libs/pixi-tilemap.js"></script>
        <script type="text/javascript" src="js/libs/pixi-picture.js"></script>
        <script type="text/javascript" src="js/libs/fpsmeter.js"></script>
        <script type="text/javascript" src="js/libs/lz-string.js"></script>
        <script type="text/javascript" src="js/libs/iphone-inline-video.browser.js"></script>
        <script type="text/javascript" src="js/rpg_core.js"></script>
        <script type="text/javascript" src="js/rpg_managers.js"></script>
        <script type="text/javascript" src="js/rpg_objects.js"></script>
        <script type="text/javascript" src="js/rpg_scenes.js"></script>
        <script type="text/javascript" src="js/rpg_sprites.js"></script>
        <script type="text/javascript" src="js/rpg_windows.js"></script>
        <script type="text/javascript" src="js/plugins.js"></script>
        <script type="text/javascript" src="js/main.js"></script>

        <!-- Insert the 'GameBackground' DIV here -->

        <div id="GameBackground"></div>


    </body>
</html>

Here is how the 'gamefont.css' file should look like (again, there might be small differences) :

Code:
@font-face {
    font-family: GameFont;
    src: url("mplus-1m-regular.ttf");
}

.IIV::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
    opacity: 0;
    pointer-events: none;
    width: 5px;
}

body {
  display: flex;
  height: 100vh;
  margin: auto;
  width: 100vw;
}

#GameBackground {
  background: red;
  display: flex;
  flex: 1 0 auto;
}

EDIT: If you are still having some difficulties, upload and/or paste your HTML and CSS files into the thread and I can help out.
Thank you for deciding to keep helping me. You're very nice. This time the game loaded and I was able to play it, but the sidebars stayed black. I even tried inserting the code for the actual color I wanted. Do you have any suggestions?
@Cole_Carbert Hmm, how did you enter the color? Did you use hex (#000000) ? If you want to match the background color of your game, the color should be #232520.

Code:
@font-face {
   font-family: GameFont;
   src: url("mplus-1m-regular.ttf");
}

.IIV::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
   opacity: 0;
   pointer-events: none;
   width: 5px;
}

body {
  display: flex;
  height: 100vh;
  margin: auto;
  width: 100vw;
}

#GameBackground {
  background: #232520;
  display: flex;
  flex: 1 0 auto;
}
Whoops, I made a mistake
@Cole_Carbert Hmm, how did you enter the color? Did you use hex (#000000) ? If you want to match the background color of your game, the color should be #232520.

Code:
@font-face {
   font-family: GameFont;
   src: url("mplus-1m-regular.ttf");
}

.IIV::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
   opacity: 0;
   pointer-events: none;
   width: 5px;
}

body {
  display: flex;
  height: 100vh;
  margin: auto;
  width: 100vw;
}

#GameBackground {
  background: #232520;
  display: flex;
  flex: 1 0 auto;
}
Ohhhhhhh, I had been using 333333. That code you suggested still didn't work, though.

It's honestly fine, it's not that big of an issue. Thank you for trying!
@Cole_Carbert Ok, I created a plugin that should hopefully work around any need for technical tinkering : Background Color 1.05

Toss that into the 'plugins' folder and change the background color in the options. See if that works!

EDIT: Oh, you will want to copy the 'gamefont.css' and 'index.html' from a new or pre-existing project to overwrite the edited ones in your current project to get rid of the code we shoved in.

EDIT II: Also added in a way to change the default, black game background ... which is different than the HTML document background for full screen. ;o

Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-the-color-of-the-black-sidebars.113538/