How can one draw a line in Sprite-kit? For example if I want to draw a line in cocos2d, I could easily using ccDrawLine();
ccDrawLine();
Is there an equivalent in sp
If you only want a line, sort of how people use UIViews for lines (only), then you can just use a SKSpriteNode
SKSpriteNode
SKSpriteNode* line = [SKSpriteNode spriteNodeWithColor:[SKColor blackColor] size:CGSizeMake(160.0, 2.0)]; [line setPosition:CGPointMake(136.0, 50.0))]; [self addChild:line];