Loading with script call

Hello 🙂

Im using the code below to load my save game on the event the player dies. Is it possible to fade in the screen on loading? Right now there is a short delay, then the load and it just looks a bit rough. It would be cool if i could add something to hide that.

Code:
if (DataManager.loadGame(0)) {
  if ($gameSystem.versionId() !== $dataSystem.versionId) {
    $gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
    $gamePlayer.requestMapReload();
  }
  SceneManager.goto(Scene_Map);
}

Thanks! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/loading-with-script-call.93592/