I'm using this handy script in a conditional branch to check if events are overlapping:
$game_map.events[3].x == $game_map.events[8].x and $game_map.events[3].y == $game_map.events[8].y
But now I need to check if an event is directly adjacent to another (just up, down, left and right, not diagonal). I'd like to avoid using a full script, if possible. Any ideas?
Thanks for reading!
$game_map.events[3].x == $game_map.events[8].x and $game_map.events[3].y == $game_map.events[8].y
But now I need to check if an event is directly adjacent to another (just up, down, left and right, not diagonal). I'd like to avoid using a full script, if possible. Any ideas?
Thanks for reading!