How to solve the problem of sprite rendering order?
The sword and shield are separated into two sprites, and I need to change their display order in the animation. If I use z_index, the above problem will occur. Sword and shield are hidden behind trees. Since I need Ysort to sort according to the Y coordinate, and I want the sword and shield to only be rendered and sorted relative to the inside of the character, and for the outside they are integrated, how to solve this problem?