Hi I, have the following line of code in ios a game
- (id)initWithLayer:(HelloWorldLayer *)layer type:(int)type hp:(int)hp {
NSString *spriteFrameName = [NSString stringWithFormat:@"tank%d_base.png", type];
//...more code
return self;
}
It’s possible to use CCString or other thing that can make something similar that NSString do?