1
Graphics / Weird black spaces behind moving sprites.
« on: October 18, 2021, 09:37:13 pm »
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:
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).
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
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).