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.

[REQ] World map Script XP

Script Title:
World map character size script
RMXP or RMVX:
RMXP
Detailed Description:
You know, I search for the script that makes your character on the world map like 50% as big as normal, or even smaller.
Screen shots:
Dont got
Other Scripts I am using (in order):
Blizz ABS
Almost all Mog scripts
 
It's amazing how often this gets requested. I really should polish the script off and post it, but it just doesn't seem worth it, at least not to me. Anyway, here's a modified version of the exact same thing, which I had previously used to fill a request for RMVX. All you have to do to activate it is name the map you want to be your world map "World Map". (Without the quotes). This script is completely plug 'n play, and will work as soon as you insert it.

Code:
#==============================================================================

# ** Game_Map

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

#  This class handles the map. It includes scrolling and passable determining

#  functions. Refer to "$game_map" for the instance of this class.

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

 

class Game_Map

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

  # * Alias Method

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

  alias glitch_game_map_setup setup

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

  # * Setup

  #     map_id : map ID

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

  def setup(map_id)

    map_data = load_data("Data/MapInfos.rxdata")

    name = map_data[map_id].name

    if name == "World Map"

      $game_player.zoom_x = 0.50

      $game_player.zoom_y = 0.50

    else

      $game_player.zoom_x = 1.00

      $game_player.zoom_y = 1.00

    end

    glitch_game_map_setup(map_id)

  end

end

 

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

# ** Game_Character

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

#  This class deals with characters. It's used as a superclass for the

#  Game_Player and Game_Event classes.

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

 

class Game_Character

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

  # * Public Instance Variables

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

  attr_accessor :zoom_x                   # character horizontal zoom

  attr_accessor :zoom_y                   # character vertical zoom

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

  # * Alias Method

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

  alias glitch_game_character_init initialize

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

  # * Object Initialization

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

  def initialize

    @zoom_x = 1.00

    @zoom_y = 1.00

    glitch_game_character_init

  end

end

 

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

# ** Sprite_Character

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

#  This sprite is used to display the character.It observes the Game_Character

#  class and automatically changes sprite conditions.

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

 

class Sprite_Character < RPG::Sprite

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

  # * Alias Method

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

  alias glitch_sprite_character_update update

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

  # * Frame Update

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

  def update

    glitch_sprite_character_update

    self.zoom_x = @character.zoom_x

    self.zoom_y = @character.zoom_y

  end

end
 

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