Need help with pygame by img movement
I am creating a game with pygame and stumbled upon a problem. The task is that when the player reaches the middle of screen(while moving from start pos :left, towards centre) the screen should be static, which I have no problem with, and once it reach middle instead of the player the bg img will move in opposite direction to give the feeling of movement. The problem is when the bg img reaches the I'm not able to stop the movement. I want it so that once the end of img is reached the player will again start moving and the black is not seen. It would be easier to run the the program and see it. I've tried to find a solution for a week but couldn't get any progress. Any help would be appreciated. Here's the drive link: https://drive.google.com/folderview?id=13hn7COEMjRAo1U-4cvYHwen73HvzsM6g