I'm using a CCSprite
with a few other CCSprite
objects added as children, the other animations I'm using (scale and rotate) work great and the children are animated too. But when I'm using CCFadeOut
, it only fades the parent.
I've read that fadeout doesn't apply to the children. Is there any way other than iterating over every child and calling the fadeout on each of them?
As of Cocos2d ver. 2.1, CCNodeRGBA has a "CascadeOpacity" BOOL property. Set it to YES on the parent CCSprite to fade out the children nodes as well as the parent.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With