Hello Guest

Author Topic: Gaps on mac with tilemap  (Read 3471 times)

hippocoder

  • Guest
Gaps on mac with tilemap
« on: August 15, 2013, 11:11:32 pm »
Hiya,

We're using a standard tilemap without mip mapping and there's 1 pixel horizontal gaps between the tiles. Any idea what we can do to minimise this? it's on a mac and I tried padding.

Read a few topics and wasn't able to see a solution that worked. Is it our perspective camera that causes it? In our previous 2D game with ex2D we merely fixed it by setting padding to 1, but that game didn't use perspective. Do you recommend we switch to ortho? we love the parallax look of perspective but are happy to fake it by moving layers.
« Last Edit: August 15, 2013, 11:15:41 pm by hippocoder »

hippocoder

  • Guest
Re: Gaps on mac with tilemap
« Reply #1 on: August 15, 2013, 11:53:55 pm »
I'm sorry but there's no problem with 2D toolkit. I tried the extend padding option. Seems to stretch out? :) works regardless...

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Gaps on mac with tilemap
« Reply #2 on: August 16, 2013, 10:24:36 am »
Awesome. The extend padding takes the last pixels and uses them for the padding. It works best when you need things to repeat. The default padding fills the area with zero alpha - works best with sprites which aren't meant to be placed side by side perfectly.