Hi.
in 2D i tend to use get X position on source and target (player / enemy)
then check (player / enemy) greater or less than. if less, enemy = left if greater enemy = right.
You should also set the equal the left or right (your preferred choice)
For the 'Front' of the object depends on how you turn the object (sprite flip, rotate, scale)
But for all of them you should do a compare.
if its top down tho you might need to look into angles.