Student is trying to use a sprite background that scrolls. The issue is the background works fine and then starts duplicating. Student tried to use a white back ground in the draw loop, then the sprite doesn’t continue. Student tried to duplicate the sprite and the issue continued,
Our main problem here is when the player.x is scrolling, the new background wasn’t made multiple times or moved to keep up with the scroll.
I was able to fix this by instead making the background scroll and resetting the position of the background. I fixed this in the backg function and removed the camera variables as they’re no longer needed.