Author Topic: Ugly black lines using TiledSprite  (Read 2982 times)

TJHeuvel

  • Guest
Ugly black lines using TiledSprite
« on: February 08, 2013, 08:25:41 AM »
Hello,

When using tiled sprites we get some flickering dark lines when the texture repeats.



Its dependant on the camera position/size. Is there any way to fix this? Its pretty consistant, other panels have the same problems.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Ugly black lines using TiledSprite
« Reply #1 on: February 08, 2013, 08:30:51 AM »
Give your tiled sprite a border of 1 pixel.

TJHeuvel

  • Guest
Re: Ugly black lines using TiledSprite
« Reply #2 on: February 08, 2013, 08:39:28 AM »
Thanks for the fast reply!


These are the settings we use, i've tried a) not using custom packer, b) increasing the padding, b) not trimming alpha. None of them seem to work.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Ugly black lines using TiledSprite
« Reply #3 on: February 08, 2013, 09:31:46 AM »
Wrong place.

Click the "Edit" button (top right of your screenshot), then choose your sprite and give it a 1 pixel border all around.

TJHeuvel

  • Guest
Re: Ugly black lines using TiledSprite
« Reply #4 on: February 08, 2013, 09:33:43 AM »
Will try, thank you.

*Edit: Works like a charm! Thanks a ton, great support.
« Last Edit: February 08, 2013, 10:04:23 AM by TJHeuvel »