Hey, so I was wondering if there was any way to change the game over image in the middle of the game depending on if a switch is on or something. For example in my game in some sections, you change who you play as and the game over screen shows the person you're playing as lying on the ground, so I would want to know if it would be possible to change the photo depending on a variable or switch
MV Can you change the gameover image with a switch?
JS Plugin RequestsCopy the below into a text editor, save as a *.js file, include as a plugin:
I'm not sure what "or something" means, so I made it dependent on switch 69. If that's turned on, it will attempt to load the image OtherName (obviously, replace that with the desired filename).
If it's off, it will use the default.
Code:
Scene_Gameover.prototype.createBackground = function() {
this._backSprite = new Sprite();
if ($gameSwitches.value(69))
this._backSprite.bitmap = ImageManager.loadSystem("OtherName");
else
this._backSprite.bitmap = ImageManager.loadSystem('GameOver');
this.addChild(this._backSprite);
};
I'm not sure what "or something" means, so I made it dependent on switch 69. If that's turned on, it will attempt to load the image OtherName (obviously, replace that with the desired filename).
If it's off, it will use the default.
Thanks this is exactly what I needed
Original thread: https://forums.rpgmakerweb.com/threads/can-you-change-the-gameover-image-with-a-switch.161493/