I'm making an endless run game and I'm having problems with the movement of the background and the ground, for some reason as the speed increases, the ground and the background start to separate, just like in the image
Note: the scenery and the floor are duplicated so that when the repetition occurs there is no blank space left.