1
General / [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,
I managed to get it working, i had my view moving in the opposite direction.
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.