Enemies that must fly over gaps

Working on a new dungeon in my game, which involves the player exploring a rift in time and space, teleporting between disconnected islands floating in void. Th battles in my game are fixed sprites, rather than random encounters.

What I want is for enemies who are capable of flight to be patrolling between the islands, to be able to spot the player and give chase. I'm using Yanfly's Event Chase Player script for the actual chasing part.

What I'm specifically having trouble with is the flying part. Setting the enemy sprite to "through" lets the sprite fly the way I want, but can't actually "touch" the player to initiate combat. Having through off, however, prevents the sprite from floating through the void.

Any thoughts or ideas would be helpful.
Track X/Y coordinates of the player and the monsters, and when one of the monsters' X/Y coordinates matches that of the player, let combat happen?
There are only two possibilities to solve this, because by default passability is the same for player and events.


1) don't activate on touch, but on coordinates. This requires a parallel process checking the player position against the event position, and that only works with a limited number of enemy events before the map lags.


2) don't use regular passability but a script like yanfly's move restrict region, that can block player OR event movement instead of both at the same time.
I'll give the coordinates thing a try, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/enemies-that-must-fly-over-gaps.43820/