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.

Fixing "Show Picture" effects from Spriteset_Map w/ Menu

I'm having a little issue with many of my scenes which show Spriteset_Map when called, where it shows any kind of 'picture' effect being displayed over my menu scenes, for example...

http://i224.photobucket.com/albums/dd28 ... eError.png[/img]

Without any "Show Picture" commands, the window scenes are perfectly viewable, but with the pictures, thats what it turns out like^^^

Is there a way to remove the 'picture_sprites' from Spriteset_Map when calling the menu, or to make them appear behind the menu? It also does this with Near Fantastica's Light Effects script too, its kinda irritating.
 

khmp

Sponsor

The code below enables the visibility of the Game_Pictures viewport based on $game_switches.
Code:
#==============================================================================
# ** Spriteset_Map
#------------------------------------------------------------------------------
#  This class brings together map screen sprites, tilemaps, etc.
#  It's used within the Scene_Map class.
#==============================================================================

class Spriteset_Map
  #--------------------------------------------------------------------------
  # * Constant Variables
  #--------------------------------------------------------------------------
  VIEWPORT_VISIBLE_SWITCH = 32
  #--------------------------------------------------------------------------
  # * Alias Methods
  #--------------------------------------------------------------------------
  alias kain_hideviewport_spriteset_map_update update
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    @viewport2.visible = $game_switches[VIEWPORT_VISIBLE_SWITCH]
    kain_hideviewport_spriteset_map_update
  end
end

Good luck with it Kain Nobel! :thumb:
 

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