yes look in the
Spriteset_Map
eatch time you change scene , you need add the pixi object to scene again. (addChild)
it depends on how and where you stored your pixi objects.
example here
when Scene load , it load map again.
PHP:
pixiSSA._rmmvAlias.Spriteset_Map_createLowerLayer = Spriteset_Map.prototype.createLowerLayer;
Spriteset_Map.prototype.createLowerLayer = function() {
pixiSSA._rmmvAlias.Spriteset_Map_createLowerLayer.call(this);
// this.createParallax(); from Spriteset_Map_createLowerLayer
this.bindToMapOBJ = pixiSSA._animationControler._pictures.bindToMapOBJ; // have list of all BindToMapData bindToMapData
this.addPixianiLayerZ(); // assign correct z index layers
};
And i add again the child of my pixi object to the map.
with my function this.addPixianiLayerZ();
PHP:
Spriteset_Map.prototype.addPixianiLayerZ = function() { // procced to add other layers with Z to _tilemap and TOP
var pixiLayers = pixiSSA._animationControler._pictures;
for(var i = pixiLayers.asignedToRMMV.length;i--;){
this._tilemap.addChild( pixiLayers[pixiLayers.asignedToRMMV[i]]);
};
var pixiLayers = pixiSSA._animationControler._pictures;
for(var i = pixiLayers.layersAsignTo_topLayers.length;i--;){
this._baseSprite.addChild(pixiLayers[pixiLayers.layersAsignTo_topLayers[i]]);
};
};
in my case, when my map change , my pixi object not destroy because a store in a variable.
When map load , i just need to add this variable as child to the map.
it is an example among many, but I let you study this, these the best way to learn.
ps: pause, combat, or menu = change map scene.