#==============================================================================
class Game_Event < Game_Character
#--------------------------------------------------------------------------
def initialize(map_id, event)
super()
@map_id = map_id
@event = event
@id = @event.id
@erased = @id == 1 ? $game_switches[1] : false
@starting = false
@through = true
# 初期位置的移动
moveto(@event.x, @event.y)
refresh
end
#--------------------------------------------------------------------------
alias add_update_xdrs update
def update
add_update_xdrs
if @id == 1
if @old_switch != $game_switches[1]
@old_switch = @erased = $game_switches[1]
refresh
end
end
end
end
#==============================================================================
#==============================================================================
class Game_Event < Game_Character
#--------------------------------------------------------------------------
def initialize(map_id, event)
super()
@map_id = map_id
@event = event
@id = @event.id
@erased = @id == 1 ? $game_switches[1] : false
@starting = false
@through = true
# 初期位置的移动
moveto(@event.x, @event.y)
refresh
end
#--------------------------------------------------------------------------
alias add_update_xdrs update
def update
add_update_xdrs
if @id == 1
if @old_switch != $game_switches[1]
@old_switch = @erased = $game_switches[1]
refresh
end
end
end
end
#==============================================================================