title: Detecting tiled map layer collision in cocos2d-x
body: <p>i am new in cocos2d-x3.2 and i am creating a tile based game something like mario. I created a tile map with a collidable layer . but when I am using <code>Dictionary *properties;</code> then its showing error in dictionary . So what can I use for detecting the collision?</p>
  
  <pre><code>Point tileCoord = this-&gt;tileCoordForPosition(position);
  
  int tileGid = CollisionLAyer-&gt;tileGIDAt(tileCoord);
  
  if (tileGid) {
  
      Dictionary *properties;
      properties = _tileMap-&gt;propertiesForGID(tileGid);
      if (properties) {
          String *collision = new CCString();
          *collision = *properties-&gt;valueForKey("Collidable");
          if (collision &amp;&amp; (collision-&gt;compare("True") == 0)) {
              return;
          }
      }
  </code></pre>