kurhlaa Posted August 8, 2018 Share Posted August 8, 2018 Hello! I've created a tilemap layer this way: layer = map.createStaticLayer('ground', tiles, 0, 0).setDepth(1); After that added a particles emitter this way: particl = scene.add.particles('imagename').createEmitter({ lifespan: 300, alpha: { start: 1, end: 0 }, on: false }); Although the emitter is created after the layer - in the application particles are behind the layer's tiles, so partly not visible. How do I set the depth of the emitter to make it always visible? Any other way to bring it in front of the layer is also good. Thanks! Link to comment Share on other sites More sharing options...
Seven7 Posted September 20, 2018 Share Posted September 20, 2018 particle = scene.add.particles('imagename'); particle.createEmitter({ lifespan: 300, alpha: { start: 1, end: 0 }, on: false }); particle.setDepth(2); You can set the depth of particles object, but not the emmiter. Mursaat and garry 2 Link to comment Share on other sites More sharing options...
Recommended Posts