开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜