开发者

CCSprite overlapping each other

开发者 https://www.devze.com 2023-03-04 01:48 出处:网络
Hi I am making a cocos2d game, In that i am adding enemies dynamically at different position, and animating them using action.

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

精彩评论

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