Game Over back to Title screen script call

Greetings, I've been asking a very simple question in the steam discussion page and so far no one have answered, so I've decided to come here and look for an answer.

I'm using the default title screen (built-in UI template) and at the end of a scene I want the game to go back to title without the player input. Since I don't have a proper scene with my menu I can't use the default Call scene or change scene to do that, so I believe I need a very simple script call.
If you just want to run it back to the start screen

Code:
SceneManager.goto(Scene_Title);
If you just want to run it back to the start screen

Code:
SceneManager.goto(Scene_Title);
Sounds exactly like what I need, but... it didn't work.

The screen stays black and nothing happens.

Sorry i misunderstood I will try again if I can help you.

This may be the small answer I discovered.
Yes, I have never used the visual novel maker


switchTo

(
  • scene
  • savePrevious
  • callback
)


Switches from the current scene to the specified one.
Parameters:
  • scene gs.Object_Base
    • The new scene.
  • savePrevious Boolean
    • Indicates if the current scene should be pushed to previous-scene stack instead of getting disposed. It is possible to switch back to that scene then using gs.SceneManager.returnToPrevious method.
  • callback Function
    • Called after the scene has been changed.
Thanks, but someone answered in the discord with a simpler solution.
Would you like to tell us all how you changed scene through scripts?

Original thread: https://forums.rpgmakerweb.com/threads/game-over-back-to-title-screen-script-call.124189/