How do I make camera follow sprite and sprite follow mouse at the same time? [SOLVED]

Hi Pros,

Can we restrict the movement of player to the cursor pointer only on x axis. And camera follows player.