flowmachine1
flowmachine1

Reputation: 111

CCLayerGradient tint to

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.

Upvotes: 0

Views: 66

Answers (1)

KARTHIK  RA
KARTHIK RA

Reputation: 469

 try this:

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

 }

Upvotes: 0

Related Questions