1
General / Visual glitch with a tilemap [Fixed]
« on: June 14, 2018, 10:54:03 pm »
I'm working on a platforming game.
I have a 32x32 tilemap which uses a vertex array, my problem is that vertical lines with textures from other tiles appear when my view coordinates are odd integers (my view coordinates are always integers).
Any ideas what the problem could be? Thanks
Update:
I fixed it (thanks Hapax) by making my view the same size as my window and using sf::View::zoom instead.
I have a 32x32 tilemap which uses a vertex array, my problem is that vertical lines with textures from other tiles appear when my view coordinates are odd integers (my view coordinates are always integers).
Any ideas what the problem could be? Thanks
Update:
I fixed it (thanks Hapax) by making my view the same size as my window and using sf::View::zoom instead.