#==============================================================================
# ■ Game_Event
#------------------------------------------------------------------------------
# 处理事件的类。拥有条件判断、事件页的切换、并行处理、执行事件等功能。
#==============================================================================
class Game_Event
def player_direction?
case $game_player.direction
when 2
$game_player.y < self.y
when 4
$game_player.x > self.x
when 6
$game_player.x < self.x
when 8
$game_player.y > self.y
end
end
end
#==============================================================================
# ■ Game_Event
#------------------------------------------------------------------------------
# 处理事件的类。拥有条件判断、事件页的切换、并行处理、执行事件等功能。
#==============================================================================
class Game_Event
def player_direction?
case $game_player.direction
when 2
$game_player.y < self.y
when 4
$game_player.x > self.x
when 6
$game_player.x < self.x
when 8
$game_player.y > self.y
end
end
end