Hey folks,
I've done some poking around, and can't seem to find a script call that would work on the title screen.
I am setting up a custom main menu, and one of the commands is a "Quit to Desktop" option. I'd like to fade to black before it quits, however.
I am trying to do something like this:
$gameScreen.startFadeOut(30);
this.wait(30);
SceneManager.exit();
So far, I haven't been able to get this working. I can't use "this" since it is not in an event (it is being run from VisuStellaCore as a menu JS command), and while I know there are ways to get various game interpreters to run the command, I haven't gotten any to work with the "wait" command so far.
Removing "wait" just quits before the fade-out does anything.
Any help is appreciated!
I've done some poking around, and can't seem to find a script call that would work on the title screen.
I am setting up a custom main menu, and one of the commands is a "Quit to Desktop" option. I'd like to fade to black before it quits, however.
I am trying to do something like this:
$gameScreen.startFadeOut(30);
this.wait(30);
SceneManager.exit();
So far, I haven't been able to get this working. I can't use "this" since it is not in an event (it is being run from VisuStellaCore as a menu JS command), and while I know there are ways to get various game interpreters to run the command, I haven't gotten any to work with the "wait" command so far.
Removing "wait" just quits before the fade-out does anything.
Any help is appreciated!