Or you could play around with the Z-Depth if they were on the same layer.
I.e. When player in front of enemy -> Send player sprite to front of layer
When player behind enemy -> Send enemy sprite to front of layer
I tried doing something like that but it didn't seem to read correctly.
Every tick_Player.Y>Enemy.Y_Move to bottom layer,
Every tick_Player.Y<Enemy.Y_Move to top layer.
What am I doing wrong?