Hi!
In this video, I employ Regions, Game Data variables, and the Get Location Info function to generate a map in which combat events are triggered by the player’s location in relation to a moving enemy. You might notice I overlooked a few commands in the victory sequence that will prohibit the player from winning while facing down. Simply copy and paste the previous conditional, change the direction fix from up to down, and switch the jump direction from -2 Y to +2 Y.
Since I've been working mainly from scratch, it might be a little rudimentary and inefficient compared to other options out there; I'm not sure. But perhaps some of you will find it useful: