Hit or be hit?

172eb9fa3c3da4479964ae84c377a7b57662b897.jpeg

Here is how i would do it.
This assumes that the enemy handles the checking, and that the enemy only can overlap the player.