CCArray problem!

CCArray problem!
0.0 0


I need to add seven diffrent sprites from frames to an array.
But how should i do that in a for loop or something like that, just please give me some examples:)

And then how to load them all in another for loop…:;ok
I will appreciate your help!(/)


and cast each obj to sprite with
CCSprite *pSprite = dynamic_cast(obj);

example is in this link.


Thanks!:slight_smile: It Worked