Cocos2d-x 3.1 Following player with scale <p>I'm making an isometric game using cocos2d-x. I use cocos2d::Follow to make the camera follows my player (player is always at the center of screen). <br/> Everything work fine but when I scale my tilemap, the camera does not follow my player like what I want (player is not at the center of screen). The camera behaves like it still follows my player in original scale.<br/> How can I make the camera to follow my player properly?</p> <p>Note:<br/> I'm using TMXTileMap and add player's sprite as a child of map node. My code is as below<br/> </p> <pre><code>tileMap = new TMXTiledMap(); tileMap-&gt;initWithTMXFile("tiles/TileMap.tmx"); tileMap-&gt;setAnchorPoint(Vec2(0.5, 0.5)); tileMap-&gt;setPosition(visibleSize.width / 2, visibleSize.height / 2); int mapWidth = tileMap-&gt;getMapSize().width * tileMap-&gt;getTileSize().width; int mapHeight = tileMap-&gt;getMapSize().height * tileMap-&gt;getTileSize().height; float scale = visibleSize.width * 3 / mapWidth; tileMap-&gt;setScaleX(scale); tileMap-&gt;setScaleY(scale); this-&gt;addChild(tileMap, -1, kTagTileMap); sprite = Sprite::create("player.png"); Vec2 coord = Vec2(tileMap-&gt;getContentSize().width / 2, tileMap-&gt;getContentSize().height / 2); tileMap-&gt;addChild(sprite, (int)tileMap-&gt;getChildren().size()); camera = Follow::createWithOffset(sprite, offX, offY, boundary); tileMap-&gt;runAction(camera); </code></pre>