[2D] How to make player face camera when rotating?

I wanna make a rotation feature like this: alt text

but mine looks like this lol

alt text

Have you tried creating a controller, attaching it to the player and attaching the camera to the player?