Hi everyone,
I asked a similar question in the general discussion page, but I thought it might fit better here, so here I go again 😀
Is there any way to erase a save file after/during the Game Over scene? And a way to reduce the save file slots? I only want one, cause there are too many.
Yes, this is for a pretty hard core game, I hope it can be done, cause it will be one of the key features.
Thank you very much for your time!
Here you have the scenes.js file, the game over scene part:
I want to instert there a way to delete safe file number 1 (the only one that exists) maybe using this?
StorageManager.remove = function(savefileId) {
if (this.isLocalMode()) {
this.removeLocalFile(savefileId);
} else {
this.removeWebStorage(savefileId);
}
};
Thing is I don't know how to implement it, I'm sure it's not dificult, it's just that my JavaScript knowledge is very very minimal. If anyone knows the answer, help me please,
it would be life giving 🙂
I asked a similar question in the general discussion page, but I thought it might fit better here, so here I go again 😀
Is there any way to erase a save file after/during the Game Over scene? And a way to reduce the save file slots? I only want one, cause there are too many.
Yes, this is for a pretty hard core game, I hope it can be done, cause it will be one of the key features.
Thank you very much for your time!
Here you have the scenes.js file, the game over scene part:
// Scene_Gameover
//
// The scene class of the game over screen.
function Scene_Gameover() {
this.initialize.apply(this, arguments);
}
Scene_Gameover.prototype = Object.create(Scene_Base.prototype);
Scene_Gameover.prototype.constructor = Scene_Gameover;
Scene_Gameover.prototype.initialize = function() {
Scene_Base.prototype.initialize.call(this);
};
Scene_Gameover.prototype.create = function() {
Scene_Base.prototype.create.call(this);
this.playGameoverMusic();
this.createBackground();
};
Scene_Gameover.prototype.start = function() {
Scene_Base.prototype.start.call(this);
this.startFadeIn(this.slowFadeSpeed(), false);
};
Scene_Gameover.prototype.update = function() {
if (this.isActive() && !this.isBusy() && this.isTriggered()) {
this.gotoTitle();
}
Scene_Base.prototype.update.call(this);
};
Scene_Gameover.prototype.stop = function() {
Scene_Base.prototype.stop.call(this);
this.fadeOutAll();
};
Scene_Gameover.prototype.terminate = function() {
Scene_Base.prototype.terminate.call(this);
AudioManager.stopAll();
};
Scene_Gameover.prototype.playGameoverMusic = function() {
AudioManager.stopBgm();
AudioManager.stopBgs();
AudioManager.playMe($dataSystem.gameoverMe);
};
Scene_Gameover.prototype.createBackground = function() {
this._backSprite = new Sprite();
this._backSprite.bitmap = ImageManager.loadSystem('GameOver');
this.addChild(this._backSprite);
};
Scene_Gameover.prototype.isTriggered = function() {
return Input.isTriggered('ok') || TouchInput.isTriggered();
};
Scene_Gameover.prototype.gotoTitle = function() {
SceneManager.goto(Scene_Title);
};
//
// The scene class of the game over screen.
function Scene_Gameover() {
this.initialize.apply(this, arguments);
}
Scene_Gameover.prototype = Object.create(Scene_Base.prototype);
Scene_Gameover.prototype.constructor = Scene_Gameover;
Scene_Gameover.prototype.initialize = function() {
Scene_Base.prototype.initialize.call(this);
};
Scene_Gameover.prototype.create = function() {
Scene_Base.prototype.create.call(this);
this.playGameoverMusic();
this.createBackground();
};
Scene_Gameover.prototype.start = function() {
Scene_Base.prototype.start.call(this);
this.startFadeIn(this.slowFadeSpeed(), false);
};
Scene_Gameover.prototype.update = function() {
if (this.isActive() && !this.isBusy() && this.isTriggered()) {
this.gotoTitle();
}
Scene_Base.prototype.update.call(this);
};
Scene_Gameover.prototype.stop = function() {
Scene_Base.prototype.stop.call(this);
this.fadeOutAll();
};
Scene_Gameover.prototype.terminate = function() {
Scene_Base.prototype.terminate.call(this);
AudioManager.stopAll();
};
Scene_Gameover.prototype.playGameoverMusic = function() {
AudioManager.stopBgm();
AudioManager.stopBgs();
AudioManager.playMe($dataSystem.gameoverMe);
};
Scene_Gameover.prototype.createBackground = function() {
this._backSprite = new Sprite();
this._backSprite.bitmap = ImageManager.loadSystem('GameOver');
this.addChild(this._backSprite);
};
Scene_Gameover.prototype.isTriggered = function() {
return Input.isTriggered('ok') || TouchInput.isTriggered();
};
Scene_Gameover.prototype.gotoTitle = function() {
SceneManager.goto(Scene_Title);
};
StorageManager.remove = function(savefileId) {
if (this.isLocalMode()) {
this.removeLocalFile(savefileId);
} else {
this.removeWebStorage(savefileId);
}
};
Thing is I don't know how to implement it, I'm sure it's not dificult, it's just that my JavaScript knowledge is very very minimal. If anyone knows the answer, help me please,
it would be life giving 🙂