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

Author Topic: [SOLVED]Experimenting with Background Tile, SFML book  (Read 865 times)

0 Members and 1 Guest are viewing this topic.

danielsega

  • Newbie
  • *
  • Posts: 6
    • View Profile
[SOLVED]Experimenting with Background Tile, SFML book
« on: March 20, 2014, 11:42:23 pm »
I am trying to make the background tile to repeat itself from left to right, instead of going upwards. I can see how it works, I changed the mworldbound in the constructor,
mWorldBounds(0.f, 0.f, 2000.f, mWorldView.getSize().y)
so i set x to 2000f and y the same size of the screen, so the world bounds is changed, but i don't see how to it to make the texture scroll sideways.

I managed to get it working, i had my view moving in the opposite direction.
« Last Edit: March 21, 2014, 03:56:32 am by danielsega »