Closed
Description
Version
- Phaser Version: 3.60.0-beta.4
- Operating system: Pop! OS
- Browser: Chrome
Description
See below image; base map is colored hex squares. If I dynamically add a layer via createBlankLayer
, and then use putTileAt
to populate this layer, the result is off-centered rendering of the tiles in the blank layer:
Example Test Code
// Preload
this.load.image('tiles', assetHexMini);
this.load.tilemapTiledJSON('map', assetHexMap);
// Create
const map = this.make.tilemap({key: 'map'});
const tileset = map.addTilesetImage('hexmini-6x', 'tiles');
const platforms = map.createLayer('Ground', tileset);
// Now, as a UI layer, circle two tiles using tile ID 2
const uiLayer = map.createBlankLayer('beep', tileset);
uiLayer.putTileAt(2, 2, 2);
uiLayer.putTileAt(2, 3, 2);
The map:
hexagonal-mini-6x.json.tar.gz
Additional Information
This issue was worse with 3.55; I found some bugs which were fixed regarding putTileAt
, hence tried the 3.60 beta.