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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - gqstw

Pages: [1]
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:
  • 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).

Pages: [1]