[SOLVED] Tille Collision cocos2d to cocos2d-x

If you get problem with wrong tileCoordForPosition use this formula:
It’s scalling cocos2d screen to cocos2d-x

Point HelloWorld::tileCoordForPosition(Point position)
{
int x = CC_CONTENT_SCALE_FACTOR() * position.x / this->_tileMap->getTileSize().width;
int y = ((this->_tileMap->getMapSize().height * this->_tileMap->getTileSize().height) - CC_CONTENT_SCALE_FACTOR()*position.y) / this->_tileMap->getTileSize().height;
return Point(x, y);
}

PS:
REMEMBER !!! TILE RENDER ORDER: RIGHT UP!