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