I can't animate sprites from array.
For example.
creating and adding sprite into array
for( int i = 1; i < 6; i++ )
for( int j = 1; j < 6; j++ ) {
[self addChild:sprite z:kPhotoSpriteZOrd];
[s_array addObject:sprite];
}
then using this code for(CCSprite *s in s_array) [s runAction: anim];
trying to animate sprites from the array
but only the last sprite from the array can animate.
where is my mistake?