Hello, you can set in this script:
If the picture is more or less tot number appears above or below?
Since I do not want to use the ID picture of the game, I can not see them in bitmap?
Example: If the variable is less than 5, the image below shows the hero (the picture will be inserted in your picture).
So this way I will not use the limit of 20 picture of RMVX ç_ç
#===============================================================
# ? [VX] ? Pictures under Characters ? ?
# * Show pictures under characters on map but above map tiles *
#--------------------------------------------------------------
# ? by Woratana [woratana@hotmail.com]
# ? Thaiware RPG Maker Community
# ? Released on: 22/02/2009
# ? Version: 1.0
#--------------------------------------------------------------
# ? Update:
#--------------------------------------------------------------
# ? Version 1.0 (22/02/2009)
# - Unlimited numbers of picture under characters
#
#--------------------------------------------------------------
# ? Compatibility:
#--------------------------------------------------------------
# ? This script will rewrite 0 method(s):
#
#
# ? This script will alias 2 method(s):
# Spriteset_Map.create_pictures
# Sprite_Picture.update
#
# ? This script should work with most scripts
#
#--------------------------------------------------------------
# ? Installation:
#--------------------------------------------------------------
# 1) This script should be placed JUST AFTER ? Materials.
#
# ? Like this:
# ? Materials
# *Pictures under Characters
# ...
# ...
# ? Main Process
# Main
#
# 2) Setup this script in Setup Part below.
#
#--------------------------------------------------------------
# ? How to use:
#--------------------------------------------------------------
# ? Place this script and setup in the setup part.
#
#=================================================================
class Spriteset_Map
#=================================================================
# ++ Setup Part
#-----------------------------------------------------------------
FIRST_PICBELOW_ID = 10 # First ID of picture that will show below characters
LAST_PICBELOW_ID = 15 # Last ID of picture that will show below characters
# For example, if you set FIRST to 10 and LAST to 15, picture ID 10-15
# will show below characters on map.
#=================================================================
alias wora_picbelow_sprsetmap_crepic create_pictures
#--------------------------------------------------------------------------
# * Create Picture Sprite
#--------------------------------------------------------------------------
def create_pictures(*args)
wora_picbelow_sprsetmap_crepic(*args)
for pic_id in FIRST_PICBELOW_ID..LAST_PICBELOW_ID
@picture_sprites[pic_id - 1].dispose
# Create picture below player in viewport1, so it can show just below player
@picture_sprites[pic_id - 1] = Sprite_Picture.new(@viewport1,
$game_map.screen.pictures[pic_id])
end
end
end
class Sprite_Picture < Sprite
alias wora_picbelow_sprpic_upd update
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update(*args)
wora_picbelow_sprpic_upd(*args)
self.z = $game_player.screen_z - 1 if @picture.number >=
Spriteset_Map::FIRST_PICBELOW_ID and @picture.number <= Spriteset_Map::LAST_PICBELOW_ID
end
end