I’m creating an 2d game atm and I have objects like trees and streetlights that I want my character to be able to go under. But I can either make the character over the whole object or under it and It needs to be half, if that makes sense. xD
Example:
If the object is at 0 and the character goes to y1 and is now under the tree. If I put the character to y-1 the root of the tree now appears to be over the character.
The only solution I can think of is I need to make the sprite into two parts and put it into two different sorting layers. But it didn’t work that great… Is there any other solution to this?