Vai al contenuto

Rilevato Ad-Blocker. Per favore disabilita il tuo adblocker quando navighi su makerando.com - Non c'è nessun annuncio invasivo.

  • Chatbox

    You don't have permission to chat.
    Load More
Ally

Gameplay Rei Actor Resize

Recommended Posts

Nome Script: Rei Actor Resize
Versione: 2.2c
Autore/i: reijubv

Informazioni:
Cambia la grandezza della grafica dei pg o degli eventi. Utile per la mappa del mondo se si vuole rimpicciolire il pg.

Istruzioni:
All'interno dello script

Script:

#===============================================================================
# �€� [VX] �€� Rei Actor Resize �€� �€�
# �€� Change player's or event's graphic size �€�
#-------------------------------------------------------------------------------
# �€� by reijubv [[email protected]]
# �€� Released on: 27/04/2009
# �€� Version: 2.2c (June 12th 2009)
#-------------------------------------------------------------------------------
# > Changelog:
#   V.1.0 (25-04-09) = Initial release
#   V.2.0 (01-05-09) = Now resizing event's graphic is possible!
#   V.2.1 (04-05-09) = Compatible with Woratana's caterpillar script!
#   V.2.1b(13-05-09) = Compatible with Trickster's caterpillar script!
#   V.2.1c(14-05-09) = Compatible with Originalwij's pet script!
#   V.2.2 (17-05-09) = Now resizing individual event's size is possible!
#   V.2.2b(17-05-09) = Now using array to store event's size, making it easier
#                      for people to resize each events individually!
#   V.2.2c(12-06-09) = Added a global variable used for compatibility
#-------------------------------------------------------------------------------
# �€� Information:
# A small script that allows you to change the size of player/event's graphic
#----------------
# V.2.0 Feature :
#----------------
# You can also change an event's graphic size now!
# To change an event's graphic size, you MUST do these things :
# (these examples are from the script's default settings)
# 1. adds this line to event's comment :
# rzoom
# 2. turn on the switch from the setting below (the one that called EFLAG)
# 3. see the effect yourself on your game!
# See the demo if you don't understand!
#----------------
# V.2.1 Feature :
#----------------
# Compatible with Woratana caterpillar script!
# For setting compatibility with it, uncomment line 226-228
#-----------------
# V.2.1b Feature :
#-----------------
# Compatible with Trickster's caterpillar script!
# For setting compatibility with it, uncomment line 232-234
#-----------------
# V.2.1c Feature :
#-----------------
# Compatible with Originalwij's pet script!
# For setting compatibility with it, uncomment line 238-240
#----------------
# V.2.2 Feature :
#----------------
# (NOT FUNCTIONAL ANYMORE, SKIP TO V.2.1b INSTEAD!) :
# You can now specify each event's size by using these comments :
# [rsx#] and [rsy#]
# Put those comments in one line or in other comment command,
# [rsx#] Will change the event's X size to #
# [rsy#] Will change the event's Y size to #
# Those feature will only works for non-decymal value.
# Decymal value will use an integer that is the closest to it, example :
# 1.2 will return 1, and 1.8 will return 2
# Example for usage :
# [rsx2][rsy3]
# Will change event's X size to 2, and Y size to 3
# ----------------
# V.2.2b Feature :
#-----------------
# Now you can use an array to store value you can use to resizing events,
# Setup it in Rei module below.
# [rsvx#] and [rsvy#];
# To use them, type those comments in 1 line, like V.2.1 feature, but never use
# both V.2.2 and V.2.1 features in 1 event, to avoid bugs.
# [rsvx#] Will change the event's X size to index #  in the ARR variable below
# [rsvy#] Will change the event's Y size to index #  in the ARR variable below
# Example for usage :
# [rsvx0][rsvy3]
# Change event's X size to a number in ARR variable from Rei module in index 0
# and Y size to a number in ARR variable from Rei module in index 3
#-------------------------------------------------------------------------------
# You can put all those comments in one line, like rzoom[rsvx#][rsvy#]
#-------------------------------------------------------------------------------
# reijubv for making this script.
# Miget man12 for making this script compatible with Woratana's caterpillar script.
#-------------------------------------------------------------------------------
# ? Installation:
# Put this script above main, setup script below
#===============================================================================

$imported = {} if $imported == nil
$imported["Rei_"+"ZoomActor"] = true

#---------------------------------------------------------------------------
# ** Rei Module
#---------------------------------------------------------------------------
module Rei
  module ZoomActor
    #---------------------------------------------------------------------------
    # * Customize script here!
    #---------------------------------------------------------------------------
    #For player
    ZOOMX = 0.6     # Change actor's horizontal size here
    ZOOMY = 0.6     # Change actor's vertical size here
    FLAG  = 599       # Switch Id to (de)activate this script effect to player  

    # (V.2.0)
    # For event
    ECOMM = "rzoom" # Write this to an event's comment to change it's size
                    # automatically.
                    # Event that doesn't have this comment won't be affected
                    # even if the switch is turned on!
    EFLAG = 4       # Switch Id to (de)activate this script effect to events            
    EZUMX = 0.6     # Change event's horizontal size here, 0.1 minimum
    EZUMY = 0.6     # Change event's vertical size here, 0.1 minimum

                    # To change those variables in game, call script :
                    # Rei::ZoomActor::FLAG =switchId
                    # Rei::ZoomActor::EFLAG=switchId
                    # Rei::ZoomActor::ECOMM="writesomethinghere"
                    # Rei::ZoomActor::ZOOMX=#
                    # Rei::ZoomActor::ZOOMY=#
                    # Rei::ZoomActor::EZUMX=#
                    # Rei::ZoomActor::EZUMY=#
                    # Change siwtchId with, ehm, a switch's Id..
                    # Change # with a number!
                    # Change writesomethinghere with umm, something you want

   # V.2.2b  
             #0    1    2    3    4    5    6    7    8    9
     ARR  = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0,
             1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0,
             2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0,
             3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 4.0,
             #You can add more here
             ]
             # This array is for storing predefined size value
             # to be used when using V.2.2b feature.
             # Each line after the first have it's index added by 10
             # Example : 3.1 index is 30, 1.6 index is 15

    #---------------------------------------------------------------------------
    # * Stop customize script here!
    #---------------------------------------------------------------------------
  end
end

#==============================================================================
# ** Game_Event
#------------------------------------------------------------------------------
#  This class deals with events. It handles functions including event page
# switching via condition determinants, and running parallel process events.
# It's used within the Game_Map class.
#==============================================================================

class Game_Event < Game_Character
  attr_accessor :reixid
  attr_accessor :reiyid
  attr_reader :reiarr
  alias reiinit initialize unless method_defined?('reiinit')
   def initialize(map_id, event)
    @reixid = 9
    @reiyid = 9
    @reiarr  = [@reixid,@reiyid]
    reiinit(map_id, event)
  end

   def getsizeindex
    if [email protected]?
    for i in [email protected] - 1
      next if @list[i].code != 108
        if @list[i].parameters[0].include?("[rsvx")
          list = @list[i].parameters[0].scan(/[rsvx([0-9]+)]/)
          @reixid = $1.to_i
        end
        if @list[i].parameters[0].include?("[rsvy")
          list = @list[i].parameters[0].scan(/[rsvy([0-9]+)]/)
          @reiyid = $1.to_i
        end
      end
      @reiarr = [@reixid,@reiyid]
      return @reiarr
    end
  end
    #---------------------------------------------------------------------------
    # * check if event has a specified comment
    #---------------------------------------------------------------------------
  def has_comment?(comment, return_comment = false )
    if [email protected]?
      for i in [email protected] - 1
        next if @list[i].code != 108
          if @list[i].parameters[0].include?(comment)
            return @list[i].parameters[0] if return_comment
            return true
          end
      end
      return '' if return_comment
      return false
    end
  end
end

#==============================================================================
# ** Sprite_Character
#------------------------------------------------------------------------------
#  This sprite is used to display characters. It observes a instance of the
# Game_Character class and automatically changes sprite conditions.
#==============================================================================

class Sprite_Character < Sprite_Base
  #--------------------------------------------------------------------------
  # * Aliases
  #--------------------------------------------------------------------------  
  alias rei_update update unless method_defined?('rei_update')
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    if @character.is_a?(Game_Player) and $game_switches[Rei]
      self.zoom_x = Rei::ZoomActor::ZOOMX
      self.zoom_y = Rei::ZoomActor::ZOOMY
    elsif @character.is_a?(Game_Event) and $game_switches[Rei] and @character.has_comment?(Rei::ZoomActor::ECOMM)
      if @character.has_comment?("[rsvx")
        self.zoom_x = Rei::ZoomActor::ARR[@character.getsizeindex[0]]
      else
        self.zoom_x = Rei::ZoomActor::EZUMX
      end
      if @character.has_comment?("[rsvy")
        self.zoom_y = Rei::ZoomActor::ARR[@character.getsizeindex[1]]
      else
        self.zoom_y = Rei::ZoomActor::EZUMY
      end

    #UNCOMMENT BELOW LINES IF YOU USE WORATANA'S CATERPILLAR SCRIPT    
    #elsif @character.is_a?(Game_WCateracter) and $game_switches[Rei]==true
    #  self.zoom_x = Rei::ZoomActor::ZOOMX
    #  self.zoom_y = Rei::ZoomActor::ZOOMY
    #UNCOMMENT ABOVE LINES IF YOU USE WORATANA'S CATERPILLAR SCRIPT

    #UNCOMMENT BELOW LINES IF YOU USE TRICKSTER'S CATERPILLAR SCRIPT
    #elsif @character.is_a?(Game_Follower) and $game_switches[Rei]
    #  self.zoom_x = Rei::ZoomActor::ZOOMX
    #  self.zoom_y = Rei::ZoomActor::ZOOMY
    #UNCOMMENT ABOVE LINES IF YOU USE TRICKSTER'S CATERPILLAR SCRIPT

    #UNCOMMENT BELOW LINES IF YOU USE ORIGINALWIJ'S PET SCRIPT
    #elsif @character.is_a?(Game_Pet) and $game_switches[Rei]
    #  self.zoom_x = Rei::ZoomActor::ZOOMX
    #  self.zoom_y = Rei::ZoomActor::ZOOMY
    #UNCOMMENT ABOVE LINES IF YOU USE TRICKSTER'S CATERPILLAR SCRIPT    

  else
      self.zoom_x = 1.0
      self.zoom_y = 1.0
    end
    rei_update
  end
end
Incompatibilita':
N/D

Condividi questo messaggio


Link di questo messaggio
Condividi su altri siti

Crea un account o accedi per lasciare un commento

You need to be a member in order to leave a comment

Crea un account

Iscriviti per un nuovo account nella nostra comunità. È facile!

Registra un nuovo account

Accedi

Sei già registrato? Accedi qui.

Accedi Ora

  • Contenuti simili

    • Da Ally
      Nome Script: Napoleon's Minimap V1.06a
      Versione: 1.06a
      Autore/i: Napoleon
       
      Informazioni:
      Mini-Map script molto bello e personalizzabile con varie opzioni =)
       
      Screenshots:
       
       
      Istruzioni:
      Istruzioni e script all'interno della demo.
       
      Demo:
      https://www.dropbox.com/s/jm92rbqb5eadryr/Napoleons%20Master%20Demo.zip
    • Da Ally
      Nome Script: Camminata 8 Direzioni
      Versione: N/D
      Autore/i: Raizen884
       
      Informazioni:
      Script che simula le 8 direzioni di camminata.
       
      Istruzioni:
      Inserite lo script sotto Material.
       
      Script:
       
      #=======================================================# Engine 8 direções.# Autor: Raizen884# Mude completamente o seu jogo de 4 direções, para# 8 direções. O script vai adicionar movimentos em 8# direções para o personagem e para todos os eventos# no jogo.#=======================================================class Game_Player < Game_Character def move_by_input return if !movable? || $game_map.interpreter.running? move_diagonal(4, 2) if Input.dir8 == 1 move_straight(2) if Input.dir8 == 2 move_diagonal(6, 2) if Input.dir8 == 3 move_straight(4) if Input.dir8 == 4 move_diagonal(6, 8) if Input.dir8 == 9 move_straight(6) if Input.dir8 == 6 move_diagonal(4, 8) if Input.dir8 == 7 move_straight(8) if Input.dir8 == 8 end def move_diagonal(horz, vert) @followers.move if diagonal_passable?(@x, @y, horz, vert) check_event_trigger_touch(@x+1, @y+1) if horz == 6 and vert == 2 check_event_trigger_touch(@x+1, @y-1) if horz == 6 and vert == 8 check_event_trigger_touch(@x-1, @y-1) if horz == 4 and vert == 8 check_event_trigger_touch(@x-1, @y+1) if horz == 4 and vert == 2 super endendclass Game_Character < Game_CharacterBase def move_toward_character(character) sx = distance_x_from(character.x) sy = distance_y_from(character.y) if sx.abs > sy.abs and sy == 0 move_straight(sx > 0 ? 4 : 6) move_straight(sy > 0 ? 8 : 2) if !@move_succeed && sy != 0 elsif sx.abs > sy.abs and sy > 0 if sx > 0 move_diagonal(4, 8) else move_diagonal(6, 8) end elsif sx.abs > sy.abs and sy < 0 if sx > 0 move_diagonal(4, 2) else move_diagonal(6, 2) end end if sx.abs <= sy.abs and sx == 0 move_straight(sy > 0 ? 8 : 2) move_straight(sx > 0 ? 4 : 6) if !@move_succeed && sx != 0 elsif sx.abs <= sy.abs and sx > 0 if sy > 0 move_diagonal(4, 8) else move_diagonal(4, 2) end elsif sx.abs <= sy.abs and sx < 0 if sy > 0 move_diagonal(6, 8) else move_diagonal(6, 2) end endend def move_random case rand(2) when 0 move_straight(2 + rand(4) * 2, false) when 1 move_diagonal(2 + rand(4) * 2, 2 + rand(4) * 2) end end def move_away_from_character(character) sx = distance_x_from(character.x) sy = distance_y_from(character.y) if sx.abs > sy.abs and sy == 0 move_straight(sx > 0 ? 6 : 4) move_straight(sy > 0 ? 2 : 8) if !@move_succeed && sy != 0 elsif sx.abs > sy.abs and sy < 0 if sx < 0 move_diagonal(4, 8) else move_diagonal(6, 8) end elsif sx.abs > sy.abs and sy > 0 if sx > 0 move_diagonal(6, 2) else move_diagonal(4, 2) end end if sx.abs <= sy.abs and sx == 0 move_straight(sy > 0 ? 2 : 8) move_straight(sx > 0 ? 6 : 4) if !@move_succeed && sx != 0 elsif sx.abs <= sy.abs and sx < 0 if sy > 0 move_diagonal(4, 2) else move_diagonal(4, 8) end elsif sx.abs <= sy.abs and sx > 0 if sy < 0 move_diagonal(6, 8) else move_diagonal(6, 2) end endendend
    • Da Ally
      Nome Script: Overlay Mapping
      Versione: del 16.04.2012
      Autore/i: Yami
       
      Informazioni:
      Questo script permette di poter utilizzare i vari livelli di parallasse per mappare all'interno del vostro progetto di RPG Maker VX Ace.
       
      Screenshots:

       
      Istruzioni:
      Create una cartella dentro "Graphics" chiamata Overlay (nome progetto/Graphic/Overlay).
      Potete creare fino a 4 tipi di immagini:
      • Ground (parte base della mappa - va SOTTO a tutto)
      • Par (parte alta della mappa - va SOPRA a tutto e copre gli eventi e il personaggio - vedi albero)
      • Light (crea effetti di luce statici)
      • Shadow (crea effetti di ombra statici)
       
      Le immagini della vostra mappa dovranno essere nominate in base alla loro funzione:
      • Il prato è un ground
      • Gli alberi e tutto quello che è sopra al livello dell'eroe è un par
      • Le luci e le ombre sono rispettivamente light e shadow
       
      Esempio:
      Io ho creato un prato con degli alberi come nell'immagine sopra.
      Tutto questo andrà inserito all'interno delle prima mappa del gioco (quindi ID:0001); di conseguenza chiamerò la mia immagine del prato cosi: Ground1_1 (il primo 1 è l'ID della mappa nel quale il prato verrà visualizzato; il secondo 1 è usato se, per esempio, nella stessa mappa volete creare più versioni: ground1_1 versione normale ground1_2 versione distruzione, per esempio); L'immagine deve essere in PNG.
      Gli alberi andranno salvati cosi: Par1_1 (i numeri seguono lo stesso principio spiegato sopra); L'immagine deve essere in PNG.
      Le luci e le ombre (se presenti) andranno salvate con lo stesso principio spiegato sopra (light1_1 e Shadow1_1); L'immagine deve essere in JPG.
       
      (se questo prato dovrà essere messo nell mappa con ID 23 le immagini saranno chiamate ground23_1, par23_1, light23_1 e shadow23_1)
       
      Spero di essere stato chiaro D:
       
      Script:
       
       
      F.A.Q:
      N/D
       
      Demo:
      N/D
       
      Incompatibilità:
      N/D
       
      Note dell'autore:
      N/D
    • Da Ally
      Nome Script: Lune Ultimate Anti-Lag
      Versione: N/D
      Autore/i: Raizen
       
      Informazioni:
      Lo script Anti-Lag ormai è un must have da inserire nei propri progetti.
      Infatti consente di migliorare le prestazioni nonostante i troppi eventi, script, etc...
       
      Istruzioni:
      Inserite lo script sotto Material e configuratelo se necessario...
       
      Script:
       
       
      #=======================================================# Lune Ultimate Anti-Lag# Author: Raizen# Compatible with: RMVXAce# Comunity: centrorpg.com# This script allows a very well balanced anti-lag, in which# considers the own PC of the player, using a smart frame-skipper# to slow lags,#========================================================#To update constantly the event, put a commentary on the first# command of the script written :update:module Anti_conf#==============================================================================# ** Configurations#------------------------------------------------------------------------------# Configure what is necessary for a better performance.#==============================================================================# Choose how the script will act.# <=====Quality============================Performance=====># 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20# Default = 10Fr = 10# Configure the FPS rate (default = 60)Fps = 60# Configure the minimum FPS rate (default = 25)Mini = 25# Quantity of frames the anti-lag will study,# the higher the time, the more precise the script,# but will take longer to load the anti-lagTime = 60end=beginFunctions on this Anti-Lag* Common event positioning bug fixed* Smart Frame Skipper* updates what is only necessary* helps to lower lags from visual system/scripts* Changes its behavior according to the players PC* Increases the RPG Maker priority over other programs=end#=================================================================##=================================================================##==================== Alias methods =============================## command_203 => Game_Interpreter# start => Scene_Map# update => Scene_Map# perform_transfer => Scene_Map#=================================================================##==================== Rewrite methods ===========================## update_events => Game_Map# update_one_event => Spriteset_Map#=================================================================##======================== New methods ===========================## need_to_update? => Game_Event# near_the_screen? => Sprite_Character# call_position_event => Scene_Map# skip_calculate => Scene_Map# update_one_event => Spriteset_Map#=================================================================##=================================================================##==============================================================================#============================ Início do Script! =============================#==============================================================================#==============================================================================# ** Scene_Map#------------------------------------------------------------------------------# Esta classe executa o processamento da tela de mapa.#==============================================================================class Scene_Map < Scene_Basealias lune_skip_start startalias lune_skip_update updatealias lune_perform perform_transfer #-------------------------------------------------------------------------- # * Inicialização do processo #-------------------------------------------------------------------------- def start Graphics.frame_rate = Anti_conf::Fps @update_skip = false @count_up = 0 lune_skip_start end #-------------------------------------------------------------------------- # * Execução da transferência #-------------------------------------------------------------------------- def perform_transfer $get_new_ids = Array.new Graphics.frame_rate = Anti_conf::Fps lune_perform @count_up = 0 @update_skip = false end #-------------------------------------------------------------------------- # * Atualização da tela #-------------------------------------------------------------------------- def update @update_skip ? lune_skip_update : skip_calculate end #-------------------------------------------------------------------------- # * Atualização de um personagem especifico #-------------------------------------------------------------------------- def call_position_event(id) @spriteset.update_one_event(id) end #-------------------------------------------------------------------------- # * Calcula o tempo necessário para rodar o update do Scene_Map #-------------------------------------------------------------------------- def skip_calculate @count_up += 1 return unless @count_up >= Anti_conf::Time auto_skip = Time.now lune_skip_update old_skip = Time.now get_skip = old_skip - auto_skip Graphics.frame_rate -= (get_skip * Graphics.frame_rate * 2 * Anti_conf::Fr - 1).to_i Graphics.frame_rate = [Graphics.frame_rate, Anti_conf::Mini].max @update_skip = true endend#==============================================================================# ** Scene_Base#------------------------------------------------------------------------------# Esta é a superclasse de todas as cenas do jogo.#==============================================================================class Scene_Basealias skipper_main main #-------------------------------------------------------------------------- # * Processamento principal #-------------------------------------------------------------------------- def main @fr_cont = 0 skipper_main end #-------------------------------------------------------------------------- # * Execução da transição #-------------------------------------------------------------------------- def perform_transition Graphics.transition(transition_speed * Graphics.frame_rate / 60) end #-------------------------------------------------------------------------- # * Atualização da tela (básico) #-------------------------------------------------------------------------- def update_basic if @fr_cont >= 60 Graphics.update @fr_cont -= 60 end @fr_cont += Graphics.frame_rate update_all_windows Input.update endend#==============================================================================# ** Aumento da prioridade do rpg maker#------------------------------------------------------------------------------Lune_high = Win32API.new("kernel32", "SetPriorityClass", "pi", "i")Lune_high.call(-1, 0x90)#==============================================================================#==============================================================================# ** Game_Event#------------------------------------------------------------------------------# Esta classe gerencia os eventos. Ela controla funções incluindo a mudança# de páginas de event por condições determinadas, e processos paralelos.# Esta classe é usada internamente pela classe Game_Map.#==============================================================================class Game_Event < Game_Character #-------------------------------------------------------------------------- # * necessário atualizar? #-------------------------------------------------------------------------- def need_to_update? ax = $game_map.adjust_x(@real_<img src='http://rpgmkr.net/forum/public/style_emoticons/<#EMO_DIR#>/sourirex.gif' class='bbc_emoticon' alt='X)' /> - 8 ay = $game_map.adjust_y(@real_y) - 6 ax.between?(-9, 9) && ay.between?(-7, 7) || @list[0].parameters.include?(':update:') endend#==============================================================================# ** Sprite_Character#------------------------------------------------------------------------------# Este sprite é usado para mostrar personagens. Ele observa uma instância# da classe Game_Character e automaticamente muda as condições do sprite.#==============================================================================class Sprite_Character < Sprite_Base #-------------------------------------------------------------------------- # * Evento próximo a tela? #-------------------------------------------------------------------------- def near_the_screen? ax = $game_map.adjust_x(@character.<img src='http://rpgmkr.net/forum/public/style_emoticons/<#EMO_DIR#>/sourirex.gif' class='bbc_emoticon' alt='X)' /> - 8 ay = $game_map.adjust_y(@character.y) - 6 ax.between?(-11, 11) && ay.between?(-8, 8) endend#==============================================================================# ** Game_Event#------------------------------------------------------------------------------# Esta classe gerencia os eventos. Ela controla funções incluindo a mudança# de páginas de event por condições determinadas, e processos paralelos.# Esta classe é usada internamente pela classe Game_Map.#==============================================================================class Game_Event < Game_Characteralias lune_ant_initialize initialize #-------------------------------------------------------------------------- # * Inicialização do objeto # event : RPG::Event #-------------------------------------------------------------------------- def initialize(*args, &block) lune_ant_initialize(*args, &block) $get_new_ids.push(@event.id) endend#==============================================================================# ** Game_Interpreter#------------------------------------------------------------------------------# Um interpretador para executar os comandos de evento. Esta classe é usada# internamente pelas classes Game_Map, Game_Troop e Game_Event.#==============================================================================class Game_Interpreteralias lune_lag_command_203 command_203 #-------------------------------------------------------------------------- # Definir posição do evento #-------------------------------------------------------------------------- def command_203 lune_lag_command_203 SceneManager.scene.call_position_event($get_new_ids.index(@event_id)) endend#==============================================================================# ** Game_Map#------------------------------------------------------------------------------# Esta classe gerencia o mapa. Inclui funções de rolagem e definição de# passagens. A instância desta classe é referenciada por $game_map.#==============================================================================class Game_Map #-------------------------------------------------------------------------- # * Atualização dos comandos dos eventos #-------------------------------------------------------------------------- def update_events @events.each_value {|event| event.update if event.need_to_update?} @common_events.each {|event| event.update} endend$get_new_ids = Array.new#==============================================================================# ** Spriteset_Map#------------------------------------------------------------------------------# Esta classe reune os sprites da tela de mapa e tilesets. Esta classe é# usada internamente pela classe Scene_Map.#==============================================================================class Spriteset_Map #-------------------------------------------------------------------------- # * Atualização dos personagens #-------------------------------------------------------------------------- def update_characters refresh_characters if @map_id != $game_map.map_id @character_sprites.each {|sprite| sprite.update if sprite.near_the_screen? } end #-------------------------------------------------------------------------- # * Atualização de algum personagem remoto #-------------------------------------------------------------------------- def update_one_event(id) @character_sprites[id].update endend
×