Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Window class sprite names, and def visible

So yeah, I wonder if anyone knows the names of the variables in RMVX's default Window class that store the window frame and background sprites. I know it's a hidden class, but maybe someone still found them out.

I also wonder how the visible definition operates... obviously, it checks something like @visible == true, but how does it actually execute it? The only thing I can imagine would be setting self.opacity = 0 and self.contents.opacity = 0, but I wonder if there's another way, especially since self.contents gets defined in Window_Base first...
 

e

Sponsor

The class is Window? It's Window.windowskin which defines the window frame and background. I don't think I get your question.

As for the visible property, when visible = false, it simply won't draw anything on the next frame update.
 
I know about the .windowskin, but you need something to save it to, don't you? Like some instance of Sprite class, aka @frame = Sprite.new...

And for the visibility... that sounds logical >_< thanks on that one... but again, I'd need some kind of variable name to actually work with that...
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top