=begin
近大远小
原作 BY 亿万星辰 for RM XP
修改 BY gaofei677 for RM VA
使用方法:在地图名中加入“!”这个标志,这样就会按照近大远小来处理人物,否则效果不变。
此脚本对NPC同样适用
=end
class Sprite_Character < Sprite_Base
alias stars_update update
def update
stars_update
id = $game_map.map_id
name = $data_mapinfos[id].name
if name.include?("!")
rate = @character.y.to_f / $game_map.height.to_f + 0.5 # ← 这个值是到达屏幕最上方时的人物比例 1.0为默认大小 最下方比例则为 1+这个值
self.zoom_x = self.zoom_y = rate
end
end
end
#==============================================================================
# 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息
#==============================================================================
=begin
近大远小
原作 BY 亿万星辰 for RM XP
修改 BY gaofei677 for RM VA
使用方法:在地图名中加入“!”这个标志,这样就会按照近大远小来处理人物,否则效果不变。
此脚本对NPC同样适用
=end
class Sprite_Character < Sprite_Base
alias stars_update update
def update
stars_update
id = $game_map.map_id
name = $data_mapinfos[id].name
if name.include?("!")
rate = @character.y.to_f / $game_map.height.to_f + 0.5 # ← 这个值是到达屏幕最上方时的人物比例 1.0为默认大小 最下方比例则为 1+这个值
self.zoom_x = self.zoom_y = rate
end
end
end
#==============================================================================
# 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息
#==============================================================================