title: Removed Sprite Still Clickable
body: <p>In a menu of my game:</p>
  
  <ol>
  <li><p>There is a box that the user can click. In the first stage, this box just has one 'wizard' sprite in it</p></li>
  <li><p>When either the box or the image is tapped/clicked, the wizard is removed and replaced with 2 buttons, one to go back and one to confirm.</p></li>
  <li><p>I have set this up so I have a variable (beenClicked2) is set to 0 when the box is in stage 1 (or just when the wizard sprite is in it)</p></li>
  <li><p>When the box is pressed, the beenClicked2 variable changes to 1 so that the box cant be clicked again when in stage 2 and doesn't crash.</p></li>
  <li><p>However, when the box only shows the wizard (stage1) the back button from stage 2 is still clickable which means the box doesn't show the 2 buttons and just stays in stage1 </p></li>
  </ol>
  
  <p>Image to show this:
  <a href="https://www.dropbox.com/s/st5fgv25fp3rz30/Image.png?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/st5fgv25fp3rz30/Image.png?dl=0</a></p>
  
  <p>Here is my code:</p>
  
  <pre><code>//PURCHASING
          if atPoint(location) == customBack2 || atPoint(location) == twoLivesWizard {
              if lock1 == 0 &amp;&amp; beenClicked2 == 0 {
                  twoLivesWizard.removeFromParent()
                  locked.removeFromParent()
                  self.addChild(purchaseText1)
                  self.addChild(purchaseTick1)
                  self.addChild(purchaseBack1)
  
                  beenClicked2 = 1
                  print("\(beenClicked2)")
              }
          }
  
  //Cancel Purchase
          if atPoint(location) == purchaseBack1 {
              beenClicked2 = 0
              self.addChild(locked)
              self.addChild(twoLivesWizard)
              purchaseText1.removeFromParent()
              purchaseTick1.removeFromParent()
              purchaseBack1.removeFromParent()
  
              print("\(beenClicked2)")
          }
  </code></pre>