Hello,
I have an issue with a child. I have a spritesheet with the player and several accessories, and I attached them to the player as a child. This is a 2D game. When I move left, I make the local scale of the attachments (-1, 1, 1) and when going right they are scaled at Vector3.one.
When I am moving left, I can sometimes see a split in between the objects, and this is my issue.
I had a problem very similar to this, but with environment tiles from sprite-sheets in my 2D game. I did a lot of research and it turns out (as seen here and here and even more places) that if you align your spritesheets perfectly, they will sometimes get gaps between them (like in the second hyperlink).
There are a few things you can try:
-
On your import settings for your spritesheet of your player, use Point filter mode. (This didnt work for me but it worked for some people)
-
You can also try setting texture mode to “Advanced” and then fiddling with the Filter, Mipmap, and Wrap modes to see if you can get something to work. Some people also say changing the Format to RGB 24-bit mode has solved their problem as well. (see TextureImporter documentation for more)
-
This is what I did - Scale your individual parts of your character to be a little bit overlapping, so that when those gaps appear, you wont actually see it. This is more of a bandaid fix, which is why i hope #1 or #2 will work for you, but you might have to do it.
Cheers (and good luck),
-Will