Hello,
as I mentioned in the subject, I have a problem with black spaces appearing behind moving sprites.
When I draw a sprite (which is SF::RectangleShape with SF::Texture on it) these are the steps of "drawing" I do:
- clearing the window
- setting centre of the view
- setting the view for the window
- drawing objects into the window
- displaying
Important notice, when sprites are still, there is no problem. Also if any code is needed I can paste it (I don't do it right now, since I don't know what can be useful).
Thanks in advance.
EDIT: I forgot to add an image showing how it looks like.
The first one is still, and the second when in a move (red arrow points direction of movement).