So Ive got my entities in the Scene,
a player Kinematic and Animated Sprites,
and a static with animated sprites,
Added to a Ysort in the World, and its all good, sorts on the Y exactly like expected,
but Im trying to make the character have multiple characters in it,
as in they were be selectable fighters in the scrolling beat em up,
the four player characters are basically the same, with different speeds and power, and health, so while adding them I came up with the idea of adding other animated sprites as the other player characters, then in _ready it hides and shows the correct one based on the players choice on the selection screen,
the idea is I only have to deal with creating one player kinematic, and duplicating it, later when getting to the 2player options,
however... changing character sprite now stops the Ysort, and I cant figure out why,
also in code I duplicate the sprite node, and colour it like a shadow, using the Z index to move the node back behind the chosen player sprite, so it looks like Mortal Kombat 1 shadows,
anyways, the shadow works fine for the characters and creates the correct one for the player dependent on the choice, but when walking around the level, the ysort now doesnt,, I thought it would because its based on the kinematicbody not the sprite, or at least thats what I thought..
can anyone point me into a direction of fixing this?