Hi, I wish to create a global dynamic array of sprites something like this
I wish to define in .h
CCSprites *tempArray[]; // (this gives error in my project when i define it.)
and in init() function of .m
i wish to initialize it like this
tempArray = new CCSprite[x]; // where x is any dynamic number of array.
I know it can be done using NSMutableArray but I need to create dynamic array of sprites
how can i do that?
thanks in advance