How can I load 15-20 sprites in Cocos2D at the same point (ccp(20,20), which is an alias for CGPointMake) using NSArray?
This is what I'm doing now, and it doesn't work:
int i,endvalue=3;
NSMutableArray *levelStar = [ [NSMutableArray alloc] initWithCapacity:9 ];
for(i=1;i<=endvalue;i++)
{
CCSprite *star = [CCSprite spriteWithFile:@"image"+i+".png"];
star.position = ccp( 20,20);
[levelStar addObject:star];
[self addChild:star];
}
