I'm trying to add SKSpriteNodes to a view in a function myself, but Xcode will not let me do this. This gives me the error "Using an unresolved identifier" I "
func indicate() { if test == 0 { var large = ((CGFloat(largest)*54) - 29) - selectedNode.position.x var small = selectedNode.position.x - ((CGFloat(smallest)*54) - 29) indicatorRight.position = CGPointMake(selectedNode.position.x + large, selectedNode.position.y) indicatorRight.userInteractionEnabled = true indicatorRight.zPosition = 0.5 indicatorLeft.position = CGPointMake(selectedNode.position.x - small, selectedNode.position.y) indicatorLeft.userInteractionEnabled = true indicatorLeft.zPosition = 0.5 println(indicatorLeft.position)
source share