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.

First person to do this wins a cookie !

Jason

Awesome Bro

I need the background of the Menu taking off so you can see the Map behind, I forgot how to do it, lol.
Don't really need anything else, just this.

PS. First person to do it wins a cookie !
 

poccil

Sponsor

Add the following as a new script section:

Code:
class Game_Temp
  attr_accessor :inmenu
  attr_accessor :sceneBeforeMenu
  def inmenu
    return @inmenu ? true : false
  end
end

class Scene_Map
  class << self
    def new
      if $game_temp.inmenu
        return $game_temp.sceneBeforeMenu
      else
        return allocate
      end
    end
  end
  def main
    # Make sprite set
    if !$game_temp.inmenu
       $game_temp.inmenu=false
       @spriteset = Spriteset_Map.new
       # Make message window
       @message_window = Window_Message.new
       # Transition run
    end
    Graphics.transition
    # Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      # Frame update
      update
      # Abort loop if screen is changed
      if $scene != self
        break
      end
    end
    # Prepare for transition
    Graphics.freeze
    if $scene.is_a?(Scene_Menu)
       $game_temp.inmenu=false
       $game_temp.sceneBeforeMenu=self      
    else
      # Dispose of sprite set
      @spriteset.dispose
      # Dispose of message window
      @message_window.dispose
    end
    # If switching to title screen
    if $scene.is_a?(Scene_Title)
      # Fade out screen
      Graphics.transition
      Graphics.freeze
    end
  end
end
#

Then add the following before line 57
of the script section Scene_Menu, to make
the windows translucent (it may be necessary
to do similar work for the other scenes):

Code:
    @command_window.opacity=200
    @playtime_window.opacity=200
    @steps_window.opacity=200
    @gold_window.opacity=200
    @status_window.opacity=200

(Sorry, I already noticed the work before I posted.)
 

Jason

Awesome Bro

It works, BUT...
When I save the game, its okay, when I load it from menu after saving it, it's okay, but when I reload the game and go on load game,it isn't transparent, any ideas ?
 

poccil

Sponsor

If you mean after selecting "Continue" from the title screen, then that's actually before the game is loaded and the scene is displayed.  Otherwise, it works fine from my tests.  You may need to clarify if necessary.
 

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