What I mean is, if there are multiple sprites that appeared stacked on top of eachother, can one change the ordering in which they appear at runtime?
Imagine a 3D game with a character made up of 2D sprites, who is holding a shield. When facing the camera, the shield should appear on top of the character, when facing away from the camera, the shield should be ‘blocked’ by the character.
It seems that the sprites appearance are simply determined based on the order they are created from their respective SpriteManager. So If I have a ‘BodySpriteManager’ and ‘ShieldSpriteManager’, how can I change the z-index/rendering order of the sprites?
I am looking for something like the Mesh’s AlphaIndex property, which unfortunately isn’t available for Sprites…
The only ‘hacky’ solution I can think of is to slightly offset the sprite’s X and Z coordinates, based on the direction of the character, and current rotation of the camera.