Unity 2d sprite bleeding glitch
Why is this happening? It's very highly condition based so it was hard to notice. The first one with single pixel bleed occurs when hitting a ceiling and the second one with the lines happen when you release the jump button at a very specific time (frame perfect timing?). Both of these are only visible for one frame.
Images:
Sprite sheet with most likely bleeding points:
Sprite sheet settings:
Answer by CodeAndWeb · Oct 27, 2018 at 09:07 AM
You are right, this is indeed neighbor sprites bleeding into your current sprite. The sprites should always be packed in a sheet in a way that their border pixels are repeated around the sprites to prevent this from happening. In your case it might already suffice to add a 2 pixels transparent border around your sprites. You can automate this process and also optimize your sprite sheets to consume less memory. Please check this tutorial for more information.
Your answer
Follow this Question
Related Questions
Unity 2D Sprite artifact/bug 1 Answer
Tiny space between sprites 1 Answer
Should I choose high resolution sprites for 2D pixel graphics? 0 Answers
How to replace sprite assets with a sheet made with TexturePacker? 0 Answers
What size should each sprite be in my spritesheet for a customizable character? 0 Answers