Flipping enemy 2d character to the side he is walking?

I got the player flipping, but the enemy cant have the same code and I cant figure out how to check where he should be facing. Does anyone have any suggestions?

Store the X position of the enemy in a Var and the X position of the player in another, is the X of the player is < the enemy, face left, > the enemy face right…

Can’t suggest much more without seeing some code!

Hope this helps!