MZ (SOLVED) Pictures stay on when going back to the Title Screen

I'm having this issue I can't figure out. When I'm play-testing, my character triggers events that call several pictures to the screen.

If I go back to the title screen before these pictures are called off, they stay visible on top of the screen, even though I'm not on the map anymore.

Could VisuMZ plugins be the cause of that ?
Hi there!
You need to explain better. Because by default, pictures cannot be shown on the Scene_Title. Only on the Scene_Map.
- These pictures you are using, are the same pictures used by the event commands? With the Show Picture command?
- Are you using any plugin that changes the title screen?

Could VisuMZ plugins be the cause of that ?
- Could you not just disable them and test again to see if they are the culprit?
By triggering events, are you doing a script call or a plugin call? Or are you using the base "Show Picture" command?
Hi there!
You need to explain better. Because by default, pictures cannot be shown on the Scene_Title. Only on the Scene_Map.
- These pictures you are using, are the same pictures used by the event commands? With the Show Picture command?
- Are you using any plugin that changes the title screen?


- Could you not just disable them and test again to see if they are the culprit?

I agree that those pictures should not be shown on the title screen. However, they just stay there.
- These pictures are exactly the same that I've used in the even commands (common events to be precise).
- I'm using a LOT of plugin, but none of them specifically change the title screen... With the exception of VisuStella's core plugins. But I haven't changed anything in those.
- I could try disabling them, but I'm far enough in the project that it would probably mess up a lot of other stuff as well.
By triggering events, are you doing a script call or a plugin call? Or are you using the base "Show Picture" command?
The base "show picture" command, through a common event !
Don't know what plugin is causing it, but even in base code if you quit the game and go to title the pictures stay in the $gameScreen._pictures or whatever it was. So probably you have some plugin that continues showing those pics in title screen. You can just try to clear when you go to the title, something like (copy paste to notepad, save as .js file and add as plugin):

const _myEdit1_SceneGameOver_terminate = Scene_Gameover.prototype.terminate;
Scene_Gameover.prototype.terminate = function() {
$gameScreen.clearPictures();
_myEdit1_SceneGameOver_terminate.call(this);
};

const _myEdit1_SceneGameEnd_terminate = Scene_GameEnd.prototype.terminate;
Scene_GameEnd.prototype.terminate = function() {
$gameScreen.clearPictures();
_myEdit1_SceneGameEnd_terminate.call(this);
};
Don't know what plugin is causing it, but even in base code if you quit the game and go to title the pictures stay in the $gameScreen._pictures or whatever it was. So probably you have some plugin that continues showing those pics in title screen. You can just try to clear when you go to the title, something like (copy paste to notepad, save as .js file and add as plugin):

const _myEdit1_SceneGameOver_terminate = Scene_Gameover.prototype.terminate;
Scene_Gameover.prototype.terminate = function() {
$gameScreen.clearPictures();
_myEdit1_SceneGameOver_terminate.call(this);
};

const _myEdit1_SceneGameEnd_terminate = Scene_GameEnd.prototype.terminate;
Scene_GameEnd.prototype.terminate = function() {
$gameScreen.clearPictures();
_myEdit1_SceneGameEnd_terminate.call(this);
};
Thank you very much for your help. Even if it doesn't work, it will probably give me a good base to work that issue out.
if you use an event title screen => this is probably the root cause.
if you use a true (default) title screen => no pictures are shown.

in case you use a evented title scene, you can use a scriptcall
to clear all pictures when going there.

a simple parallel/autorun event with:

$gameScreen.clearPictures();
erase event

which eliminate all pictures from here, otherwise, its impossible unless
a plugin override the title scene (which we need to see your plugin base)
Okay, would recommend just disabling plugins one at a time (cascading for VS) and retest to find the exact cause. RPGM does not do this by default, it's almost certainly a plugin.
Don't know what plugin is causing it, but even in base code if you quit the game and go to title the pictures stay in the $gameScreen._pictures or whatever it was. So probably you have some plugin that continues showing those pics in title screen. You can just try to clear when you go to the title, something like (copy paste to notepad, save as .js file and add as plugin):

const _myEdit1_SceneGameOver_terminate = Scene_Gameover.prototype.terminate;
Scene_Gameover.prototype.terminate = function() {
$gameScreen.clearPictures();
_myEdit1_SceneGameOver_terminate.call(this);
};

const _myEdit1_SceneGameEnd_terminate = Scene_GameEnd.prototype.terminate;
Scene_GameEnd.prototype.terminate = function() {
$gameScreen.clearPictures();
_myEdit1_SceneGameEnd_terminate.call(this);
};
This worked perfectly, thank you very much.

Original thread: https://forums.rpgmakerweb.com/threads/solved-pictures-stay-on-when-going-back-to-the-title-screen.183653/