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.

[VX] Remove background in Menu

A friend made me this menu script, but I need to remove the black background. Also I was wondering how I could move the command_window Menu to the bottom screen.
Code:
 

#==============================================================================

# ** Scene_Menu

#------------------------------------------------------------------------------

#  This class performs the menu screen processing.

#==============================================================================

 

class Scene_Menu < Scene_Base

  #--------------------------------------------------------------------------

  # * Object Initialization

  #     menu_index : command cursor's initial position

  #--------------------------------------------------------------------------

  def initialize(menu_index = 0)

    @menu_index = menu_index

  end

  #--------------------------------------------------------------------------

  # * Start processing

  #--------------------------------------------------------------------------

  def start

    super

    create_command_window

    @gold_window = Window_Gold.new(0, 360)

  end

  #--------------------------------------------------------------------------

  # * Termination Processing

  #--------------------------------------------------------------------------

  def terminate

    super

    @command_window.dispose

  end

  #--------------------------------------------------------------------------

  # * Frame Update

  #--------------------------------------------------------------------------

  def update

    super

    @command_window.update

    update_command_selection

  end

  #--------------------------------------------------------------------------

  # * Create Command Window

  #--------------------------------------------------------------------------

  def create_command_window

    s1 = Vocab::item

    s2 = "Missions"

    s3 = Vocab::save

    s4 = "Exit"

    @command_window = Window_Command.new(160, [s1, s2, s3, s4])

 

    @command_window.index = @menu_index

    if $game_system.save_disabled             # If save is forbidden

      @command_window.draw_item(2, false)     # Disable save

    end

  end

  #--------------------------------------------------------------------------

  # * Update Command Selection

  #--------------------------------------------------------------------------

  def update_command_selection

    if Input.trigger?(Input::B)

      Sound.play_cancel

      $scene = Scene_Map.new

    elsif Input.trigger?(Input::C)

      if $game_party.members.size == 0 and @command_window.index < 4

        Sound.play_buzzer

        return

      elsif $game_system.save_disabled and @command_window.index == 4

        Sound.play_buzzer

        return

      end

      Sound.play_decision

      case @command_window.index

      when 0      # Item

        $scene = Scene_Item.new

      when 1      #Missions

        #$scene = Omegas_Achievements_Scene.new

      when 2      # Save

        $scene = Scene_File.new(true, false, false)

      when 3      # Exit

        $scene = Scene_Map.new

      end

    end

  end

end

 
 
I noticed that there was rain in the map, image. Did you want the map to be animated? That makes things much more difficult than simply putting the map behind the window. To put the map behind the window, you want to add the following to the initialize method of the menu:

Code:
@map = Spriteset_Map.new

Then, add this to the update method:

Code:
@map.update

And finally, add this to the terminate method:

Code:
@map.dispose

As best I can tell, this covers adding a map as a background to the menu for both RMXP and RMVX.
 
Thank you that worked. The rain still runs when in the menu so that cool.

If you could help me with one other menu problem I want to make the command window above the gold window.

The first image below is what my menu looks now. The second is what I would like it to look like.
Gamemenu1copy.jpg

Gamemenu2copy.jpg
 
samanoskue":3vvmxhqg said:
Thank you that worked. The rain still runs when in the menu so that cool.

If you could help me with one other menu problem I want to make the command window above the gold window.

The first image below is what my menu looks now. The second is what I would like it to look like.
Gamemenu1copy.jpg

Gamemenu2copy.jpg

You want to edit the create_command_window method, by adding the following command:

Code:
@command_window.y = 416 - @gold_window.height - @command_window.height

That should take the default game window height, subtract, the gold window height, then subtract the height of the command window, then set the resulting value as the y position of the command window. Also, the shine from those streetlamps is either too high or too low, depending on what effect you were trying to achieve. If you were trying to make it shine on the dock, they are one tile too high. If you were trying to make them shine from the light, then they are one tile too low. Look at where the bases of the lamps are. If the light is shining straight down, the light on the ground should be next to the base of the lamp, on tiles with the same y coordinate. At least, it should be for those lamps. If the lamps had lights facing toward the bottom portion of the dock, then the rules would be different.
 
Thank you again that worked. For the lights I been going crazy trying to make it look right yes the light should be next to the bottom of the post but it sort of looks weird. Made these images to show you.
map2.jpg

map1.jpg
 

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