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

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