Background Transparency in windows

DarknessFalls

Rpg Maker Jesus - JS Dev.
Veteran
Joined
Jun 7, 2013
Messages
1,393
Reaction score
210
First Language
English
I am using the default window skin and I am wondering what, in scripts or other wise, would cause this:

Ignoring that this is a script changing the menu, and no it has nothing to do with the script because the background is as opaque as this with the default menu system. How do I add some transparency? I edited the main window skin and deleted the main graphic bellow the top graphic that shows the color of the core window.

but that didn't change anything.

is there a script call or...
 

Fomar0153

Arkz
Restaff
Joined
Mar 13, 2012
Messages
1,327
Reaction score
473
First Language
English
Primarily Uses
RMMZ
In the window somewhere e.g. in the initialize method add:


self.opacity = 0


or


self.back_opacity = 0


I always forget which way round it is.
 

DarknessFalls

Rpg Maker Jesus - JS Dev.
Veteran
Joined
Jun 7, 2013
Messages
1,393
Reaction score
210
First Language
English
none of those seem to exist oO

found it. but neither of those fixed the issue.I have also ruled out scripts that might cause this.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Isn't it something to do with the colour you choose for the window in your System tab?
 

DarknessFalls

Rpg Maker Jesus - JS Dev.
Veteran
Joined
Jun 7, 2013
Messages
1,393
Reaction score
210
First Language
English
no. or at least not that I know of. I have tried fooling around with it, same result.

would it be bad if I just left it?
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Window background opacity should be about 160 by default (I think - number might be different). If it's not that - if it's 255, then you must have changed it somewhere. Are you using any custom menu scripts?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
or you can put transparency in the image itself using any image editing program...
 

DarknessFalls

Rpg Maker Jesus - JS Dev.
Veteran
Joined
Jun 7, 2013
Messages
1,393
Reaction score
210
First Language
English
Window background opacity should be about 160 by default (I think - number might be different). If it's not that - if it's 255, then you must have changed it somewhere. Are you using any custom menu scripts?
Where is this set by default? so I can search the scripts for it? As stated I thought I ruled out scripts but its always fun to recheck

or you can put transparency in the image itself using any image editing program...
Already tried that, no effect.

I should also add I tried creating a new project copying everything over, one at a time, script wise, and everything worked fine. then when I copied the project to my drop box folder and ran the game a few times is when i got the errors.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
The help file says, of the Window class, that back_opacity has a default value of 192.


So just do a global script search (control+shift+f) for back_opacity to see if there's anything that changes it.


Aaaaaand, on second thoughts, I think the issue might simply be that you've got it on a black (or very dark) background. Try using a picture as a background and see if your windows become semi-transparent.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
if it's black, I don't think the transparency will really show right as shaz said... I personally have no issues when I put transparency using paint.net on my gray windowskin...
 

deilin

Ranger/Elementalist
Veteran
Joined
Mar 13, 2012
Messages
1,188
Reaction score
172
First Language
English
make a completely new window with the whole left half transparent and name it window2 and place it in the systems folder

class Window_Base < Window  def initialize(x, y, width, height)    self.windowskin = Cache.system("Window") if !SceneManager::scene_is?(Scene_Menu)    self.windowskin = Cache.system("Window2") unless !SceneManager::scene_is?(Scene_Menu)  endendwith the left side transparent, the back of the window wont appear. if you clear the top-right  quarter of the window, it will be boarderless. But it needs to be transparent alpha.

EDIT::

reading what was written when writing this, that is probably not the issue. As for what you might be experiencing, I'm not much help being mostly colorblind.
 
Last edited by a moderator:

DarknessFalls

Rpg Maker Jesus - JS Dev.
Veteran
Joined
Jun 7, 2013
Messages
1,393
Reaction score
210
First Language
English
The help file says, of the Window class, that back_opacity has a default value of 192.

So just do a global script search (control+shift+f) for back_opacity to see if there's anything that changes it.

Aaaaaand, on second thoughts, I think the issue might simply be that you've got it on a black (or very dark) background. Try using a picture as a background and see if your windows become semi-transparent.
I wanted to test something so I made a window skin that was:

(Notice how the whole left side is transparent.)

I checked my color jazz for this window:

I don't think that's dark at all, So I didn't touch it. So lets go look for back_opacity

The only script touching it is learn skill, I tried changing it's value to 0, no effect. So I ruled it out, I also ruled out the message script because upon playing with that, it turned out to only affect messages.

Any other ideas?

Oh my end result, from messing with the window skin:

So..... Whats next?

if it's black, I don't think the transparency will really show right as shaz said... I personally have no issues when I put transparency using paint.net on my gray windowskin...
See my response to him. 

make a completely new window with the whole left half transparent and name it window2 and place it in the systems folder

class Window_Base < Window  def initialize(x, y, width, height)    self.windowskin = Cache.system("Window") if !SceneManager::scene_is?(Scene_Menu)    self.windowskin = Cache.system("Window2") unless !SceneManager::scene_is?(Scene_Menu)  endendwith the left side transparent, the back of the window wont appear. if you clear the top-right  quarter of the window, it will be boarderless. But it needs to be transparent alpha.

EDIT::

reading what was written when writing this, that is probably not the issue. As for what you might be experiencing, I'm not much help being mostly colorblind.
I get this error when trying to run your script, regardless of script position:

Code:
Window Fix:3:in `windowskin=': disposed window (RGSSError)        from Window Fix:3:in `initialize'        from Window_Selectable:19:in `initialize'        from Window_Command:14:in `initialize'        from Window_TitleCommand:12:in `initialize'        from Scene_Title:92:in `new'        from Scene_Title:92:in `create_command_window'        from Scene_Title:17:in `start'        from Scene_Base:12:in `main'        from SceneManager:23:in `run'        from Grab Map:969:in `run'        from Main:18:in `block in <main>'
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Did you do this?

... I think the issue might simply be that you've got it on a black (or very dark) background. Try using a picture as a background and see if your windows become semi-transparent.
And I'm a she, not a he ;)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top