quite new to cocos2d so this is probably a school boy question.
I have ccMenu full of ccMenuItemImage's and want to animate each menu item in sequence to fade out.
I have an array with all the CCMenuItemImages:
menuItems = [[NSArray alloc] initWithObjects:button1, button2, button3, nil];
And i am trying to loop through the array and fade each button out:
CCFadeOut *fadeToAlpha = [CCFadeOut actionWithDuration:0.5];
for (CCMenuItemImage *nextOne in menuItems)
[nextOne runAction:fadeToAlpha];
This seems to work, but will only fade out the last CCMenuItemImage in the array. I know i could perform the action on the actual CCMenu, but i want to perform the animations one after another on each menu item.
Any help would be appreciated.