title: Adobe Animate CC and JavaScript - Collision Detection
body: <p>I am using Adobe Animate CC and coding in JavaScript. I am trying to detect a collision between two symbols using the following code:</p>
  
  <pre><code>createjs.Ticker.on("tick", gameLoop, state);
  
  function gameLoop(){
  
  var pt = player.globalToLocal(collect.x, collect.y);
      if(player.hitTest(pt.x, pt.y)){
          alert("hit");           
      }
  }
  </code></pre>
  
  <p>But this isn't doing anything, the statement is always false.</p>
  
  <p>How do I solve this?</p>