How to make an enemy always face the player.?

I have provided a screenshot to demonstrate.

I actually want to make that…

when I jump that side of green monster …

the monster should face the player and attack it…

and when I jump back again to previous side of monster…

monster should again face him…

How can I make this to happen?

i think you would have to change the Sprite when the frog attack is true maybe… that is how most 2D games are done.