Tiled Plugin for RPG Maker MZ Version 1.03 Released!


Hello Adventurers~ ðŸŒ»

The latest update of Tiled plugin is here! We will be providing a project template and video tutorial soon.

✼New Features:

  •  The plugin now accepts 'zIndex' property on folders. 
  • A new property named 'hiddenInGame' is added. This hides the layer from the map. Useful for certain features like flags.

✼Bug Fix(es):

  • Fixed a bug where hitting an edge without a collision tile will cause a crash.
  • Fixed a bug with the property 'terrainTag' not working. You can only have 1 terrain tag per "level" on any given XY even if it is on a different tiled layer.

Version Differences

Tiled has done an update where the JSON format for Object layers are different. The example change:

Version 1.3.x  Version 1.7.x

Version 1.3.x <--> Version 1.7.x

This will cause the game to crash. So we have uploaded two versions of the plugin and going forward, we might just focus solely on 1.7.x update. If you wish to downgrade anytime and not remake all your maps here is what you need to do.

If you want to use Version 1.3.x

Game_TiledDoodad.prototype.setup = function (data) {
    this._data = data;
    this._id = data.id;
    let gid = data.gid;
    gid &= ~(FLIPPED_HORIZONTALLY_FLAG | FLIPPED_VERTICALLY_FLAG);
    this._gid = gid ? gid : undefined;
    this._textureId = VisuMZ.Utility.getTextureId(gid);
    const tileset = $gameMap.tiledData.tilesets[this._textureId];
    const tile = (tileset) ? tileset.tiles[this._gid - tileset.firstgid] : 'undefined'

Pastebin Backup:

If you want to use Version 1.7.x

Game_TiledDoodad.prototype.setup = function (data) {
    this._data = data;
    this._id = data.id;
    let gid = data.gid;
    gid &= ~(FLIPPED_HORIZONTALLY_FLAG | FLIPPED_VERTICALLY_FLAG);
    this._gid = gid ? gid : undefined;
    this._textureId = VisuMZ.Utility.getTextureId(gid);
    const tileset = $gameMap.tiledData.tilesets[this._textureId];
    if (tileset.tiles === undefined) {
      const tData = $gameMap.tiledData;
      tileset.tiles = [{id: 0, image: tileset.image, imageheight: tileset.imageheight, imagewidth: tileset.imagewidth }]
    }
    
    const tile = (tileset) ? tileset.tiles[this._gid - tileset.firstgid] : 'undefined'

Pastebin Backup:

Thank you and Happy Game Making!

Files

VisuMZ_5_TileD1.3.x.js 62 kB
Oct 31, 2021
VisuMZ_5_TileD1.7.x.js 62 kB
Oct 31, 2021

Get Tiled Plugin for RPG Maker MZ

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.