cocos2d-x beta2 :how to trigger few different batch of sprites animation one after another with delay

Hey
i have few sets of 2 Sprites each , i want for example:

  1. animate 3 sprites
  2. when all the animations done set sleep for 2 sec
  3. after sleep is done , animate another different 3 sprites
  4. when all the animations done set sleep for 2 sec
  5. after sleep is done , animate another different 3 sprites
  6. when all the animations done set sleep for 2 sec
  7. jump to 1

until somewhere in the game button pressed and the animation will stop

i tried 1 method
1 . recursion

` AllMatchedSymbol = m_pSymbolsVec.size(); // Hold array of sprites in each elm
animateMatchedRules(–AllMatchedSymbol); // call first time

void PayLinesManager::animateMatchedRules(int allMatchedSymbol)
{
    
	if(allMatchedSymbol<0)
	{
		return;
	}
	int _allMatchedSymbol = allMatchedSymbol;
	__Array* pMatchedSymbolArray = (__Array*)m_pSymbolsVec.at(allMatchedSymbol);
	__String *key = (__String*)pMatchedSymbolArray->objectAtIndex(0);

        // get the array of sprites to animate 
	__Array *MatchedSymbolArray = (__Array *)pMatchedSymbolArray->objectAtIndex(1);
	
	
	for(ssize_t a=0; a<MatchedSymbolArray->count();a++)
    {
         
        auto actionBlink = Blink::create(2,10);
        
        ((Sprite*)MatchedSymbolArray->getObjectAtIndex(a))->runAction(actionBlink);
    }
	 animateMatchedRules(--_allMatchedSymbol); // recursion call 
}`

now this can work but i have 2 problems

  1. i cant do animation loop after the recursion done
  2. can’t add delay between calls

what do you think is the best way to implement this ?