My friend and I are making a 2D game engine, and we came across what we think is a bug.
http://imgur.com/a/aekoWIn the picture, you can see a black line that shouldn't be there. Under the black line is a background sprite, moving with the rest of the level. To make it look like the sky of the background is infinite, we simply do this :
m_window.clear(sf::Color(254, 220, 200));
This is why the color above the background sprite is pink too.
We don't understand why there is this black line. It is not always there. It only appears when the sf::View is at certain vertical positions, so when jumping, the line is flickering. But if the player only moves horizontally, the line doesn't flicker.
Does anyone know why this is?
Thank you very much