ios - Making a String into an SKNode -
i have correct sknode in string format. want transform string name "a2square" node called a2square.
is possible?
is there anyway take string "a2square" , somehow transform sknode same name....
although not entirely clear me trying do, looking sklabelnode. special node can rendered text (a label).
some sample code:
sklabelnode *winner = [sklabelnode labelnodewithfontnamed:@"chalkduster"]; winner.text = @"a2square"; winner.position = cgpointmake(cgrectgetmidx(self.bounds), cgrectgetmidy(self.bounds)); [self addchild:winner];
Comments
Post a Comment