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.

Little Problem

I put this script above Main

Code:
class Window_Blah < Window_Base
  
  def initialize
    super(0,0, 599, 329)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
  end
  
  def refresh
    self.contents.clear
    self.contents.draw_text(x,y,155,155,"This is some text",1)
  end
end

And this script call in a map event

Code:
Window_Blah.new

But why after a bit of seconds the window disappears ?
And how can I make the window disappear when a switch is false ?
 

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