Need help changing the plugin's backgroung window transparency.

Hey guys, I'm trying to create a custom menu with help from Soulpour777's video.
I've managed to change everything about the menu (the button sprite, deleting the status window, etc...) but I wanted to make a background with some semi transparent green in it. For example a character's sprite on the side and green semi transparent background behind it.

Here is the scene in which I create the background:
Spoiler: Code
Scene_MenuBase.prototype.createBackground = function() {
this._backgroundSprite = new Sprite();
this._backgroundSprite.bitmap = ImageManager.loadPicture('background');
this.addChild(this._backgroundSprite);
};

I'll leave the screen as it is in the file section.
Hope some of you can show me some light because I've just started handling the plugins and learning Javascript so I'm still a bit of a newbie. I've also tried searching through many places but none seem to be helpful in my case.


My best regards,
Moth.
Simply add to your original function up there:

Code:
this._backgroundSprite.opacity = 125; //lowers the opacity, creating transperency.
//Max Opacity is 255; lowest is 0.
I really don't understand this. When I use that code (which I already had tried to use it) the background doesn't become any transparent but becomes a darker shade of green... I'm so confused...

Here's the piece of code with the changes within:
Code:
Scene_MenuBase.prototype.createBackground = function() {
        this._backgroundSprite = new Sprite();
        this._backgroundSprite.bitmap = ImageManager.loadPicture('background');
        this._backgroundSprite.opacity = 125;
        this.addChild(this._backgroundSprite);
    };
The darker shade is because the Sprite is becoming transparent. Opacity refers to how well you can see something. Lowering the opacity, lowers the ability to see the object. It's the same as trying to make something see through.

The reason it looks like a darker shade of green is probably because there's nothing behind it in the ordering. Every time you call addChild it's like stacking paper on top of each other.

The reason it's darker then is because the only thing behind the backgroundSprite is a black color. Partly because you overwritten the original createBackground method to load a called "background.png".
Is there anyway to "delete" the black color behind the background so the player can see the map they're on?

Also thank you for your help and sorry for the inconvenience!

Original thread: https://forums.rpgmakerweb.com/threads/need-help-changing-the-plugins-backgroung-window-transparency.81696/