objective c - Calling SKSpriteNodes based on of their name -


in spritekit game have several sprites different name properties .

for (int = 0; < 10; i++) {         skspritenode *sprite = [skspritenode spritenodewithimagenamed:@"png"];         sprite.name = [nsstring stringwithformat:@"name%i",i];         sprite.position = cgpointmake(100, 100);         [self addchild:sprite];     } 

is possible call 1 of these sprites based on name?

i found looking for.. use

[self childnodewithname:@"name"]; 

to search specific node.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -