kurhlaa Posted July 21, 2018 Share Posted July 21, 2018 Hi, Is there a trick (or standard way) to put tiles of the same layer to the different depths? Currently I can call layer.setDepth(1) to modify the whole layer. But is there a way to have only one layer where some tiles have depth "1" and others have "0" ? Link to comment Share on other sites More sharing options...
NoxBrutalis Posted July 23, 2018 Share Posted July 23, 2018 Yes, you need to make a dynamic layer I believe. Dynamic layers, rather than static layers are for tile that you wish to modify during the game. here's a link to the docs on it: https://photonstorm.github.io/phaser3-docs/Phaser.Tilemaps.DynamicTilemapLayer.html kurhlaa 1 Link to comment Share on other sites More sharing options...
mkt Posted December 13, 2019 Share Posted December 13, 2019 To prevent others from wasting time: Phaser's author himself just confirmed to me in Discord that this is not possible. You need to use separate layers! Link to comment Share on other sites More sharing options...
Recommended Posts