[Solved] assistance with Creating a transparent Window_base

● ARCHIVED · READ-ONLY
Started by Faytless 5 posts View original ↗
  1. greetings, I'm pouring though the .js code to find the method or parameter to give me a transparent window base. Basically, I need hello world to be floating around without the window and any of my desired coordinates.

    Can someone point me in the right direction?

    Here is my code.
    Code:
    var win = new Window_Base(0,0, 300, 100)
    win.drawTextEx("Hello World", 0, 0, 100, 100, 1);
    SceneManager._scene.addWindow(win);
  2. been a while, but as I recall, you're looking for the back_opacity value on the window.
  3. sprite work with alpha proprety

    win.alpha = 0.5; // half transparents
    win.alpha = 0; // transparents.
    win.alpha = 1; // full show

    so
    PHP:
    var win = new Window_Base(0,0, 300, 100);
    win.alpha = 0.5;
    win.drawTextEx("Hello World", 0, 0, 100, 100, 1);
    SceneManager._scene.addWindow(win);
  4. You can use:
    Code:
    win.opacity = 0 //out of 255
    Changing the opacity like this will make all sprites but the contents sprite transparent. So hello world would be appearing without the surrounding window.


    Or you can change each sprite directly:
    Code:
    win._windowBackSprite //(back without the frame)
    win._windowContentsSprite //(the text)
    win._windowFrameSprite //(frame only)
  5. Zalerinian said:
    been a while, but as I recall, you're looking for the back_opacity value on the window.
    Astfgl66 said:
    You can use:
    Code:
    win.opacity = 0 //out of 255
    Changing the opacity like this will make all sprites but the contents sprite transparent. So hello world would be appearing without the surrounding window.


    Or you can change each sprite directly:
    Code:
    win._windowBackSprite //(back without the frame)
    win._windowContentsSprite //(the text)
    win._windowFrameSprite //(frame only)

    Thank you guys, Opacity did it.

    Alpha on the other hand inherits the text property too, sooo even the text gets the function too.