rat
rat

Reputation: 354

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,

Upvotes: 2

Views: 357

Answers (1)

Related Questions