How to overlap sprites in cocos2d
How will I show 2 sprites on same layer. Presently sprites with h开发者_开发技巧orizontal image is coming behind the other sprites. Horizontal image sprites drawing in CCRibbon class.
Well, you could assign them a z order. This is done by using code like this:
[self addChild: MySprite z:1]
The higher the z order, the highest up the sprite will be.
精彩评论