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

Author Topic: [C++ and SFML 2.1] Scrolling backgrounds ( y+) [SOLVED]  (Read 19277 times)

0 Members and 1 Guest are viewing this topic.

wintertime

  • Sr. Member
  • ****
  • Posts: 255
    • View Profile
Re: [C++ and SFML 2.1] Scrolling backgrounds ( y+)
« Reply #15 on: November 10, 2013, 04:01:29 pm »
If you didn't read it in the first 2.5 minutes after the posting got visible, there was no more edits after that. (Normally I only use spaces, but the existing lines contained tabs already. When I was typing in tabs to format the code consistently the forum editor was reacting weirdly and posted it prematurely without me clicking.)
Though the main point was calling setTextureRect before drawing.

nebula

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • Email
Re: [C++ and SFML 2.1] Scrolling backgrounds ( y+)
« Reply #16 on: November 10, 2013, 05:33:19 pm »
okay then i think i just overread it. in the screenshot i posted you can see that the initialization of bgY was not in your post, so i thought that it was correct. but now i totally understand that it was bullsh*t what i coded.

yeah the setTextureRect is logical because i do not want to change the sprites position but the area it shows. you really helped me out and for that i thank you a lot wintertime!

now, that the problem is solved i think it can be seen as solved

 

anything