how do i make the camera move horizontally when the player is out of the screen ?
Make an event without any conditions and an an instruction that changes X position of the camera to the X position of your player, like this:
(Change the “YourPlayerObject” part for the name of the object you’re actually using)