class Game_Map
DIR8_4 = [nil,[4,2],[5,2],[6,2],[4,5],[5,5],[6,5],[4,8],[5,8],[6,8]]
def round_xy_with_direction(x, y, d)
x = round_x_with_direction(x, DIR8_4[d][0])
y = round_y_with_direction(y, DIR8_4[d][1])
return x, y
end
end
class Game_Player
def check_event_trigger_there(triggers)
x, y = $game_map.round_xy_with_direction(@x, @y, @direction)
start_map_event(x, y, triggers, true)
return if $game_map.any_event_starting?
return unless $game_map.counter?(x, y)
x, y = $game_map.round_xy_with_direction(x, y, @direction)
start_map_event(x, y, triggers, true)
end
end
class Game_Map
DIR8_4 = [nil,[4,2],[5,2],[6,2],[4,5],[5,5],[6,5],[4,8],[5,8],[6,8]]
def round_xy_with_direction(x, y, d)
x = round_x_with_direction(x, DIR8_4[d][0])
y = round_y_with_direction(y, DIR8_4[d][1])
return x, y
end
end
class Game_Player
def check_event_trigger_there(triggers)
x, y = $game_map.round_xy_with_direction(@x, @y, @direction)
start_map_event(x, y, triggers, true)
return if $game_map.any_event_starting?
return unless $game_map.counter?(x, y)
x, y = $game_map.round_xy_with_direction(x, y, @direction)
start_map_event(x, y, triggers, true)
end
end