Hello Guest

Author Topic: Unintentional Tiled Sprite Padding?  (Read 4424 times)

corlenbelspar

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 11
    • View Profile
Unintentional Tiled Sprite Padding?
« on: May 20, 2015, 11:28:38 am »
In the attached screenshot the tiled sprite of hearts has a 1 pixel padding at the top of it.  I can't for the life of me figure out how to get rid of that.  Anyone know how to fix this?  I've had this issue before and the padding seems to be random depending on the sprite size but I never had to work around it until now.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Unintentional Tiled Sprite Padding?
« Reply #1 on: May 20, 2015, 01:17:08 pm »
It looks like thats the padding on the texture itself - check the source texture and make sure it doesn't have any empty 0 alpha pixels that could be trimmed away....

corlenbelspar

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Unintentional Tiled Sprite Padding?
« Reply #2 on: May 20, 2015, 06:45:13 pm »
I would think this but I made the texture myself, there's only padding on the bottom of it and not the top.

EDIT: I got rid of it by just getting rid of the padding on the bottom but in the future this may pose a more significant problem, so I'd still like you know how to get rid of it in the tiled sprite itself.
« Last Edit: May 20, 2015, 07:42:44 pm by corlenbelspar »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Unintentional Tiled Sprite Padding?
« Reply #3 on: May 20, 2015, 10:29:58 pm »
I've run out of things to guess here. Post a repro in private support and I'll take a look - will just need the sprite collection with the sprite and a scene with the tiled sprite in it.

corlenbelspar

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Unintentional Tiled Sprite Padding?
« Reply #4 on: May 21, 2015, 10:28:10 pm »
Will do, hope it helps, give me a few minutes.
Here's the post I made for you.
http://2dtoolkit.com/forum/index.php/topic,5031.0.html
« Last Edit: May 21, 2015, 10:43:59 pm by corlenbelspar »