Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement