CCLayerGradient tint to

68 views Asked by At

How can I use CCTintTo with CCLayerGradient? When I use default CCTintTo action on gradient layer only one color changing, but another color still the same. How can I change them all together?

Any help. Thanks.

1

There are 1 answers

0
KARTHIK  RA On
 try this:

 CCObject* child;
 CCARRAY_FOREACH(layer->getChildren(), child)
 {
    CCSprite* allSpriteChild = (CCSprite*) child;
    allSpriteChild->setColor(layer->getColor());

 }