#==============================================================================
# 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息
#==============================================================================
#NPC视野
class Game_Player < Game_Character
#--------------------------------------------------------------------------
# ● 像通到画面中央一样的设置地图的显示位置
#--------------------------------------------------------------------------
def centerNPC(id)
if id==0
$目标视角=$game_player #可以使角色在粘在车子上
max_x = ($game_map.width - 20) * 128
max_y = ($game_map.height - 15) * 128
$game_map.display_x = [0, [$game_player.real_x - CENTER_X, max_x].min].max
$game_map.display_y = [0, [$game_player.real_y - CENTER_Y, max_y].min].max
else
$目标视角=$game_map.events[id]#可以使角色在粘在车子上
end
end
end