Hi, i am developing a game with friends and we have a situation that we don't exactly know how to deal with it.
When you have a character sprite walking in front or behind some object, say a tree, how do you make it possible that the sprite can appear in front and also behind basically the same pixles? This seems to be happening in other 2D games. So far we just tried to restrict character movement to only be able to walk in front or behind certain pixles. (Like in front of the lower part of a tree and behind the upper part of a tree) When adding shadows, this problem occured where the shadow reached the lower part of the tree that was in a layer behind the character. Now instead of reducing the character height or restricting movement even further, we would like to learn how to simply make it possible for a character to exist in front and behind the same pixles.
