CCSprite overlapping each other
Hi
I am making a cocos2d game, In that i am adding enemies dynamically at different position, and animating them using action.Enemies are appearing in screen according to the order I added. But I want to开发者_运维技巧 show sprites according to its Y value.
Please tell me is there any api in cocos2d to do sorting the sprites according to sprite position, or which is the best way to accomplish this.
Thanks,
- Best way to update zOrder based on Y position
- Z Order Operations - "Perspective" based games
- CCSpriteBatchNode / reorder Z
精彩评论