Hello Guest

Author Topic: Camera and sprites snapping to pixel  (Read 4315 times)

innsmouth.rain

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Camera and sprites snapping to pixel
« on: May 10, 2015, 02:30:54 pm »
Hello world

I'm facing the problem mentioned in the title. Searches revealed the pixel snap option in sprite textures as a possible solution but in TK2D but it ended up turning my sprites into one colored boxes as shown in pics.

What is recommended for pixel snapping sprites in TK2D?

Best wishes

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Camera and sprites snapping to pixel
« Reply #1 on: May 11, 2015, 12:39:44 am »
I don't think thats anything to do with pixel snapping. What did you do for it to go solid grey like the pic above?

innsmouth.rain

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Camera and sprites snapping to pixel
« Reply #2 on: May 16, 2015, 04:18:36 pm »
I just go into my sprite collection, into settings, scrolling down to the bottom, clicking Materials, choose _any_ material and hit commit.

It will still look fine in the SpriteCollection editor, but in the Tk 2d Sprite (Script) component and in the game, it's now a solid box.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Camera and sprites snapping to pixel
« Reply #3 on: May 17, 2015, 05:47:52 pm »
I can't reproduce this. You're either missing a step somewhere or its something specific to your setup. Post a repro in the private support forum and I can investigate further.