Hi,
For a game I'm devloping, I have 2 kind of players of sprites: good guy (GG), and bad guy (BG).
Since both have several animations attached, I implemented something similar to what's described here http://johnehartzog.com/2009/05/using-cocos2d-atlasspritemanager/ and I'm sharing the AtlasSpriteManager instance across all the five BGs.
In some game situations, however, the good guy may end up between 2 bad guys, and I would need the Z order to reflect that:
BG - GG - BG
Since both BG share the same AtlasSpriteManager, it seems to me that I cannot do it (based on my tests).
Any suggestion on how to handle this? What's the overhead of having 5 times more AtlasSpriteManagers (for the bad guys) so I can freely swap its depth?
Thank you