title: scoring system in a sprite kit game
body: <p>I'm making a game in sprite kit where a ball falls onto a person and i need to add a label which counts up every time the ball hits the man. I have the contact part sorted but i'm just a bit confused as to how to do the label and make it count up. GG</p>
  
  <pre><code>- (void)didBeginContact:(SKPhysicsContact *)contact
  {
      SKSpriteNode *firstNode, *secondNode;
  
      firstNode = (SKSpriteNode *)contact.bodyA.node;
      secondNode = (SKSpriteNode *)contact.bodyB.node;
  
      if ((contact.bodyA.categoryBitMask == manCategory)
      &amp;&amp; (contact.bodyB.categoryBitMask == pooCategory))
      {
          CGPoint contactPoint = contact.contactPoint;
  
          float contact_y = contactPoint.y;
          float target_y = secondNode.position.y;
          float margin = secondNode.frame.size.height/2 - 25;
  
          if ((contact_y &gt; (target_y - margin)) &amp;&amp;
          (contact_y &lt; (target_y + margin)))
          {
  
          }
      }
  }
  </code></pre>