2D Toolkit Forum

2D Toolkit => Support => Topic started by: saygon on January 29, 2013, 11:45:26 am

Title: Spaces between sprites under different resolution.
Post by: saygon on January 29, 2013, 11:45:26 am
Hi guys.

I developing game on Android (some sort of constructor).
I have a row of the same sprites. I created sprites in unity editor and set the position  in such a way that between them there is no empty space.
But when I change resolution (to TegraTablet, HTC Wildfire, etc.), I can see the empty space (1-2 pixels) between some sprites.
When I move sprites to avoid this space, in some other resolutions I get empty space again.

I am using unity camera (non tk2dCamera). Camera ortho size - 5.
Sprite scales in collection editor 8X8X8.
2d toolkit version - 1.7.

How I can fix this?
Thanks in advance.
Title: Re: Spaces between sprites under different resolution.
Post by: saygon on January 29, 2013, 12:38:42 pm
I think I found that I looked -
I read 2d toolkit user manual pdf and probably I should use unity editor vertex snap mode.

I will write about results.
Title: Re: Spaces between sprites under different resolution.
Post by: Mezcaholic on January 29, 2013, 03:58:35 pm
Saigon, I had a similar problem.  Try going to you sprite collection and edit. Select all of the sprites you want to have next to each other and change the pad method to Extend.  I am using the beta your mileage may vary.  Hope this helps.

-E
Title: Re: Spaces between sprites under different resolution.
Post by: unikronsoftware on January 29, 2013, 08:12:33 pm
Please try what Mezcaholic suggested.
Also, check this: http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,612.0.html
It might be reducing your texture quality when running on certain devices.

Also, try turning off mipmaps on your sprite collection atlas texture, it might help.
Title: Re: Spaces between sprites under different resolution.
Post by: saygon on January 29, 2013, 09:39:22 pm
Thank you guys.

Set pad method to Extends fixed this problem.

2d Toolkit is really cool thing!