Game Over back to Title screen script call

Darkwes

Endless Darkness
Member
Joined
Apr 28, 2014
Messages
24
Reaction score
8
Primarily Uses
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.
 

palatkorn

Veteran
Veteran
Joined
Nov 1, 2019
Messages
174
Reaction score
49
First Language
thai
Primarily Uses
RMMV
If you just want to run it back to the start screen

Code:
SceneManager.goto(Scene_Title);
 

Darkwes

Endless Darkness
Member
Joined
Apr 28, 2014
Messages
24
Reaction score
8
Primarily Uses
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.

 
Last edited:

palatkorn

Veteran
Veteran
Joined
Nov 1, 2019
Messages
174
Reaction score
49
First Language
thai
Primarily Uses
RMMV
Sorry i misunderstood I will try again if I can help you.
 

palatkorn

Veteran
Veteran
Joined
Nov 1, 2019
Messages
174
Reaction score
49
First Language
thai
Primarily Uses
RMMV

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.
 

Darkwes

Endless Darkness
Member
Joined
Apr 28, 2014
Messages
24
Reaction score
8
Primarily Uses
Thanks, but someone answered in the discord with a simpler solution.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Yaaay! My second public script is out and approved! A VX Ace Final Fantasy IX styled Throw Script!

I look forward to all the constructive feedback I get but most importantly I hope everyone who ends up using it enjoys!

Yaaaay! Making scripts is fun lol. :D
When you're lost out therrrrre and you're alllll alone, ahwahwah waitin, to carry you hooooommmme, uhhheverywhere you look! (someone hit me with those backing vocals)
X.X cant focus... too many thing want do... help!
Day 2 of teaching MV, student can move cat across the map.
Got inspired and started writing a simple tower defence battle system last night :o

Forum statistics

Threads
100,525
Messages
976,797
Members
132,080
Latest member
nwr
Top