class Sprite_Character < Sprite_Base
alias stars_update update
def update
stars_update
return if @character.equal? $game_player
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
class Sprite_Character < Sprite_Base
alias stars_update update
def update
stars_update
return if @character.equal? $game_player
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