How to determine if the enemy is on the right or left side of the character?

thanks man u r a legend <3