Last active
September 14, 2016 21:20
-
-
Save jeremyckahn/73fc29545c278f2d0fce to your computer and use it in GitHub Desktop.
RPG Maker MV plugin to auto start a new game when the game boots
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* globals SceneManager */ | |
/*: | |
* @plugindesc Auto start a new game when the game boots | |
* @author Jeremy Kahn | |
*/ | |
(function () { | |
function poll () { | |
if (SceneManager._scene && SceneManager._scene.commandNewGame) { | |
SceneManager._scene.commandNewGame(); | |
} else { | |
setTimeout(poll, 10); | |
} | |
} | |
poll(); | |
}()); |
It looks like is starting my game, but the music also keeps "rolling".
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is super hacky and ugly, but it works well enough.