Reputation: 111
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
Reputation: 469
try this:
CCObject* child;
CCARRAY_FOREACH(layer->getChildren(), child)
{
CCSprite* allSpriteChild = (CCSprite*) child;
allSpriteChild->setColor(layer->getColor());
}
Upvotes: 0