Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Weird black spaces behind moving sprites.  (Read 5336 times)

0 Members and 1 Guest are viewing this topic.

gqstw

  • Newbie
  • *
  • Posts: 1
    • View Profile
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:
  • 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).
« Last Edit: October 18, 2021, 09:58:37 pm by gqstw »