Every Tick > Enemy Sprite > Set Angle > Player.X >
Just saying... it is better to create the heads entirely different sprites. ;)
Develop games in your browser. Powerful, performant & highly capable.