let pic = new PIXI.Sprite.fromImage("img/folder/filename.png");
//do this to remove from the PIXI texture cache. Important!
pic = undefined;
Thank you! Is there a way to show it in layers? like img1 layer0, then img2 layer1 and remove image1 after?
It shows the jpg but it puts it above all layers and if I show a message it doesn't show (maybe it appears on the layer under)
The order you add them in with
is their 'layer' order. There are several layers to the map, everything you show with the method I shared will get them above everything you're currently seeing on screen.
If you type that into the console, it will return an array with all current children in SceneManager._scene (<== This always points to the current scene, be it the map, the menu, the title, etc)
There are two other useful functions to control which order the pictures you show go in
SceneManager._scene.addChildAt(pic, index) <== where index is the position in the array you'd like to put the picture.
If you want to put stuff below the characters, or on the same 'layer' as them, it's a little more complicated.
I won't go into detail if it's not necessary, but you can go into the console and type
Gotta remove it first.
You could do it without removing it first, but then you'd have to do something like
You'd have to get the index somehow, which isn't impossible but
it's much more efficient to just remove it like
You know, I sometimes ponder if working on the story and details is more necessary than the game itself. Its... technically work, just not direct.
Like for me specifically I never stop evolving the story based on what avenues I can approach in gameplay and then I get anxious thinking "hey good thing I thought about that now instead of later". Repeat ad nauseam.
So my office building has 8 individually rented offices in it; 3 of which are social workers and 2 are marriage therapists... Unsurprisingly it always sound very angry out there. Glad I have my own private entrance.