I'm trying to make my game save the progress when the player dies... but is not working.... i'm getting the error: "Cannot read property 'clamp' of indefined".
I'm using this script call
$gameSystem.onBeforeSave();
DataManager.saveGame(1);
StorageManager.cleanBackup(1);
When I save the game manually by the save screen works fine.
I'm using this script call
$gameSystem.onBeforeSave();
DataManager.saveGame(1);
StorageManager.cleanBackup(1);
When I save the game manually by the save screen works fine.