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

Author Topic: Problem with tile map  (Read 1551 times)

0 Members and 1 Guest are viewing this topic.

datMoka

  • Newbie
  • *
  • Posts: 48
  • Wooo!
    • View Profile
Problem with tile map
« on: February 01, 2013, 11:53:40 pm »
hey all!

I seem to be having a problem with drawing map tiles next to each other. They're normal sprites, tried both .png and .jpg to see if it made a difference and it didn't. Basically, when I'm drawing sprites next to each other, there's a very noticeable gap.
 


The gap on the right is with putting the first map (on the left) at (0,0) and the map on the right at (900,0). Both maps are 900px wide so I don't see why there's a gap. Also, when I moved the left map piece down by 1px you can see it replaces the gap between the left tile and the bottom left tile, but there's an overlay problem there!

I've moved the left tile down by 29 more pixels so you can clearly see the overlapping problem!



Please help! :(

datMoka

  • Newbie
  • *
  • Posts: 48
  • Wooo!
    • View Profile
Re: Problem with tile map
« Reply #1 on: February 02, 2013, 03:10:52 am »
Found out how to stop this. Just moved to SFML2 haha.