Creating a chasing screen like crossy road

Hi, I’m creating a game and I need to find a way to implement one of its aspects, the idea is a 2d game that the player is dodging obstacles while running to the right, the thing I need to implement is a moving scene I.E. as if the screen’s left side is trying to get the player and slowly comes towards the player as the player is going right and if the screen reaches the player the player dies, so my first thought was add an object as a child to the player and make the screen follow it at all times, the problem, what happens if the player is really good and going fast, I want the screen to have a certain threshold in which if the player has opened a certain gap the screen will move with the player so the screen wont deny the player from going onward making him wait, this specific implementation was done in the game Crossy Road, and I honestly have no clue as to how to implement it, any suggestions will be awesome!

A lot of super mario bros. levels are similar to this, but the edge of the screen doesn’t kill the player, it usually traps the player or pushes the player off a platform, causing the player to plummet to his death with spikes and vicious sarlacc babies, and hot lava and such.
I think - if you are going to allow the fast players to extend the distance from them to the left camera edge death, the camera will need to zoom out to allow for that fast play.

Alternatively the camera could be constant. Like in smb, the camera moved at a constant steady pace, the player could move the character all the way to the far right if desired, waiting on the camera pan to move along, but it was dangerous because enemies could spawn at any place/time to instantly hit the player character. Remember those underwater levels?

Are there spawning enemies similar to smb?

Just some additional thoughts to consider.