I’m newbie in Cocos, today I’m try to load a tiled map (which is edited with Tiled 1.4.3) but I got below render issue:
Expected:
Sorry, new user can’t embed two photos, let’s open below tiled map instead.
I’m using below code to load map:
initMap() {
const createAndAddTileMap = (tmxAsset: Asset) => {
const tileMapNode = this.node.addComponent(TiledMap);
const tileMapAsset = tmxAsset as TiledMapAsset;tileMapNode.tmxAsset = tileMapAsset; }; const mapName = "map/grassland/Glades"; resources.load(mapName, (err: any, asset: any) => { if (err) { console.error(err); return; } createAndAddTileMap(asset); }); }
Here is map which I’m using:
Deleted
I need your help. Thank you.
