Reputation: 354
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