Hello Guest

Author Topic: Spaces between sprites under different resolution.  (Read 4195 times)

saygon

  • Newbie
  • *
  • Posts: 7
    • View Profile
Spaces between sprites under different resolution.
« 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.

saygon

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Spaces between sprites under different resolution.
« Reply #1 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.

Mezcaholic

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Spaces between sprites under different resolution.
« Reply #2 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

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Spaces between sprites under different resolution.
« Reply #3 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.

saygon

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Spaces between sprites under different resolution.
« Reply #4 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!