With cocos2d 0.9.0 beta2, I was able to reorder z order by subclassing CCSpriteSheet.
However there is a problem.
I have two CCSpriteSheet. Let's say they are Hero and Enemy. Hero has one sprite as a child.
Enemy has numbers of sprites as children. Enemy is using subclassed CCSpriteSheet and Hero is using
original CCSpriteSheet.
Enemy is reordering correctly, but Hero needs to be reordered also.
What I've tried is that I added invisible sprite as a child of Enemy and update its position as Hero's position updates.
Then put z order of invisible sprite as Hero's z order.
I thought it should work but it's not.
Please someone give me some advice.
Thank you.