Closed bkjohnson closed 7 years ago
there's special flag for those kind of containers , its in readme
tilemap.displayFlag = PIXI.DISPLAY_FLAG.MANUAL_CONTAINER;
Also, i recommend new version: https://github.com/pixijs/pixi-display/tree/layers , it has awesome demo: http://pixijs.github.io/examples/#/layers/lighting.js API differs from old pixi-display.
Thank you so much, I'm glad this was such an easy fix!! Also thank you for putting so much work into PIXI - as I've been learning I've been seeing your name all over the place giving answers and writing helpful modules.
I've been trying to get my tilemap to render underneath all of the sprites but it always comes out on top no matter what z-index I set the DisplayGroup to be. Also, once I set
stage.displayList = new PIXI.DisplayList();
the tilemap won't render at all.Here is a code snippet:
Here I even tried adding a tilemap to a container and then adding the container to the stage but it still either
stage.displayList
is set, orstage.displayList
is not setAny idea as to why this is happening? I'm pretty sure I've followed the examples correctly but of course I could be missing something.