2D Toolkit Forum

2D Toolkit => Support => Topic started by: corlenbelspar on May 20, 2015, 11:28:38 am

Title: Unintentional Tiled Sprite Padding?
Post by: corlenbelspar 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.
Title: Re: Unintentional Tiled Sprite Padding?
Post by: unikronsoftware 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....
Title: Re: Unintentional Tiled Sprite Padding?
Post by: corlenbelspar 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.
Title: Re: Unintentional Tiled Sprite Padding?
Post by: unikronsoftware 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.
Title: Re: Unintentional Tiled Sprite Padding?
Post by: corlenbelspar 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 (http://2dtoolkit.com/forum/index.php/topic,5031.0.html)