0

I need to separate the digits of my score (in sprite kit game) and display them in SKLabelNodes independently. Is this possible. I may need to make a mutable array of sklabelnode but i am unable to do so. What i have achieved till now is this:-

NSMutableArray *digits = [NSMutableArray array];

for(int i = 0; score ; i++){
    [digits addObject: [NSNumber numberWithInt:score%10]];
    score /= 10;
    NSLog(@"digits : %@", digits);
}

I have separated the digits. I don't know how should i get them displayed in separate SKLabelNodes. help?

Swati Rawat
  • 1,729
  • 1
  • 19
  • 34

0 Answers0