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.

a single menu window

Hi guys. I need help with my game menu.
I want to erase the money,party, and steps windows from the menu. then, pop up the party/item info when an option is chosen.
if someone can make me a script, or guide me through this, I'll be grateful.
also, when I erase the other windows, I end up with this:
http://i103.photobucket.com/albums/m151 ... roblem.jpg[/IMG]
*i got so far, by erasing lines in scene_menu. it doesn't work..*
if the black bg is removed, will I see the map behind it? (it's what I'm aiming for)
Any help is appreciated. :yes:
btw, it's for a pokemon game I'm helping with.
 

Mac

Member

Leave it as it is when you delete them, then add this under the line def_main.

Code:
@spriteset = Spriteset_Map.new

Then go down to @command_window.dispose and add:-

Code:
@spriteset.dispose

And thats all.

~Mac
 
wow, thanks. now I see the map. however, when I choose status, the window wasn't created yet, so I get error about Nil.
I know I should copy these lines :
#@status_window = Window_MenuStatus.new
#@status_window.x = 160
#@status_window.y = 0

but where do I paste them? :D
 
thanks. you already helped a lot with those 2 lines of code. :)
I found the mistake, so now I can choose between the characters.
edit: the status window is now updating.

I'll say what I did, in case someone wanna try it too.
beside Mac's lines, I erased the following lines in Scene_menu:

Code:
   # Make play time window
    @playtime_window = Window_PlayTime.new
    @playtime_window.x = 0
    @playtime_window.y = 224
    # Make steps window
    @steps_window = Window_Steps.new
    @steps_window.x = 0
    @steps_window.y = 320
    # Make Gold window
    @gold_window = Window_Gold.new
    @gold_window.x = 0
    @gold_window.y = 416
 
    @status_window = Window_MenuStatus.new
    @status_window.x = 160
    @status_window.y = 0

     @playtime_window.dispose
     @steps_window.dispose
     @gold_window.dispose
I also changed "@status_window.dispose" to:
if (@status_window)
@status_window.dispose
end
and finnaly, added these lines:
Code:
# Make status window active
        @status_window = Window_MenuStatus.new 
        @status_window.x = 160                 
        @status_window.y = 0
inside update_command, below the line "when 1 #skill"
and again below "when 3 #status"
 

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