How to make a camera follow a Player, but not allow the Player to go back ?

I’m able to make the camera follow the player, as it progresses through the platformer level, but how can I stop the camera from following the player, when it is walking backwards ? So basically, once you have passed a certain checkpoint in the camera, and it went past the left bounds of the camera, you cant go back to it anymore. As an example, I can say something like “Contra” comes to mind.

Why not add an if statement to your camera script, and only when that if statement is satisfied, you’ll move the camera?