I have several similar SKSpriteNodes that I'd like to arrange in specific patterns on the screen. Specifically I'd like them to arrange as a circle around another central SKSpriteNode.
I'm putting the x,y for each in an array and using setPostion:CGPointMake(x,y)
to place on screen:
NSInteger DotX_Pos[] = {50,200,350,500};
NSInteger DotY_Pos[] = {50,200,350,500};
[sprite setPosition:CGPointMake(DotX_Pos[i],DotY_Pos[i])];
While this works, it's not efficient plus I'd like to arrange more and more sprites as the game level advances.
Any good ideas how to get this done?
thanks, rich