title: AndEngine: Handling collisions with TMX Objects
body: <p>I managed to load a tmx map now I would like to create the obstacle that the sprite can not move, I recovered the obstacle like this :</p>
  
  <pre><code>try {
          final TMXLoader tmxLoader = new TMXLoader(this, this.mEngine.getTextureManager(), TextureOptions.BILINEAR_PREMULTIPLYALPHA, new ITMXTilePropertiesListener() {
              @Override
              public void onTMXTileWithPropertiesCreated(final TMXTiledMap pTMXTiledMap, final TMXLayer pTMXLayer, final TMXTile pTMXTile, final TMXProperties&lt;TMXTileProperty&gt; pTMXTileProperties) {
                  /* We are going to count the tiles that have the property "cactus=true" set. */
                  if(pTMXTileProperties.containsTMXProperty("obstacle", "true")) {
                      //TMXTiledMapExample.this.mCactusCount++;
                      //coffins[coffinPtr++] = pTMXTile.getTileRow() * 15 + pTMXTile.getTileColumn();
  
                  }
              }
          });
  </code></pre>
  
  <p>How do I handle collisions with obstacles so as to prevent the player from walking through the obstacle (i.e., like a wall)?</p>