0

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.

Muddu Patil
  • 713
  • 1
  • 11
  • 24
flowmachine1
  • 111
  • 2
  • 7

1 Answers1

0
 try this:

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

 }
KARTHIK RA
  • 469
  • 2
  • 8