Skip to content

Instantly share code, notes, and snippets.

@jeremyckahn
Last active September 14, 2016 21:20
Show Gist options
  • Save jeremyckahn/73fc29545c278f2d0fce to your computer and use it in GitHub Desktop.
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
/* 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();
}());
@jeremyckahn
Copy link
Author

This is super hacky and ugly, but it works well enough.

@Arise
Copy link

Arise commented Sep 14, 2016

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