2D Toolkit Forum

2D Toolkit => Support => Topic started by: innsmouth.rain on May 10, 2015, 02:30:54 pm

Title: Camera and sprites snapping to pixel
Post by: innsmouth.rain 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
Title: Re: Camera and sprites snapping to pixel
Post by: unikronsoftware 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?
Title: Re: Camera and sprites snapping to pixel
Post by: innsmouth.rain 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.
Title: Re: Camera and sprites snapping to pixel
Post by: unikronsoftware 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.