ok so i found that to be a bit of help but now im at my noobie limit this is what i got out of it, maybe someone could tell me why i cant get it to run like the simple bite im trying to replace.
/************************************************************
* core > Rpg_scene.js > Scene_Title
************************************************************/
this is what im replaceing
it feeds but gives me the database choice and ignores or errors as undefined.
the console shows this:
/****************************************
TitleScreenRandomImgSelector.js
****************************************/
/*:
* @plugindesc Displays a random background image for the title screen.
* @author WorldWakeSTU
*
* @param TitleScreenCount
* @desc The number of images used for random selection on the title scene.
* @default 0
*/
/*******************************************************************************
* Rpg_Scene.js rip
*******************************************************************************/
Scene_Title.prototype.createBackground = function () {
this.backSprite2 = new Sprite(ImageManager.loadTitle2($dataSystem.title2Name));
this.addChild(this.backSprite2);
/*******************************************************************************
* WorldWakeSTU personal patch (scripting style from Liquidize anima_manyLoadingScreen)
*******************************************************************************/
var parameters = PluginManager.parameters('TitleScreenRandomImgSelector');
var TitleScreenCount = Number(parameters.TitleScreenCount || 0);
if (TitleScreenCount > 0) {
var random = Math.floor(Math.random() * (TitleScreenCount - 0 + 1));
if (random > 0) {
this._backSprite1 = new Sprite('img/title1/Title' + random + '.png'); // <<< after an alert test this said im not a sprite so you cant set my //x(what the @#$%&* (excuse me while I beat my head against the wall.) how is [new Sprite] not a sprite!)
this.addChild(this._backSprite1);
} else {
this._backSprite1 = new Sprite(ImageManager.loadTitle1($dataSystem.title1Name));
this.addChild(this._backSprite1);
}
}
};
TitleScreenRandomImgSelector.js
****************************************/
/*:
* @plugindesc Displays a random background image for the title screen.
* @author WorldWakeSTU
*
* @param TitleScreenCount
* @desc The number of images used for random selection on the title scene.
* @default 0
*/
/*******************************************************************************
* Rpg_Scene.js rip
*******************************************************************************/
Scene_Title.prototype.createBackground = function () {
this.backSprite2 = new Sprite(ImageManager.loadTitle2($dataSystem.title2Name));
this.addChild(this.backSprite2);
/*******************************************************************************
* WorldWakeSTU personal patch (scripting style from Liquidize anima_manyLoadingScreen)
*******************************************************************************/
var parameters = PluginManager.parameters('TitleScreenRandomImgSelector');
var TitleScreenCount = Number(parameters.TitleScreenCount || 0);
if (TitleScreenCount > 0) {
var random = Math.floor(Math.random() * (TitleScreenCount - 0 + 1));
if (random > 0) {
this._backSprite1 = new Sprite('img/title1/Title' + random + '.png'); // <<< after an alert test this said im not a sprite so you cant set my //x(what the @#$%&* (excuse me while I beat my head against the wall.) how is [new Sprite] not a sprite!)
this.addChild(this._backSprite1);
} else {
this._backSprite1 = new Sprite(ImageManager.loadTitle1($dataSystem.title1Name));
this.addChild(this._backSprite1);
}
}
};
* core > Rpg_scene.js > Scene_Title
************************************************************/
this is what im replaceing
Scene_Title.prototype.createBackground = function() {
this._backSprite1 = new Sprite(ImageManager.loadTitle1($dataSystem.title1Name));
this._backSprite2 = new Sprite(ImageManager.loadTitle2($dataSystem.title2Name));
this.addChild(this._backSprite1);
this.addChild(this._backSprite2);
};
this._backSprite1 = new Sprite(ImageManager.loadTitle1($dataSystem.title1Name));
this._backSprite2 = new Sprite(ImageManager.loadTitle2($dataSystem.title2Name));
this.addChild(this._backSprite1);
this.addChild(this._backSprite2);
};
the console shows this:
TypeError: undefined is not a function
at Sprite.Object.defineProperty.set (rpg_core.js:3223)
at Sprite.initialize (rpg_core.js:3202)
at new Sprite (rpg_core.js:3178)
at Scene_Title.createBackground (TitleScreenRandomImgSelector.js:28)
at Scene_Title.create (rpg_scenes.js:246)
at Function.SceneManager.changeScene (rpg_managers.js:1654)
at Function.SceneManager.updateMain (rpg_managers.js:1640)
at Function.SceneManager.update (rpg_managers.js:1576)
at Sprite.Object.defineProperty.set (rpg_core.js:3223)
at Sprite.initialize (rpg_core.js:3202)
at new Sprite (rpg_core.js:3178)
at Scene_Title.createBackground (TitleScreenRandomImgSelector.js:28)
at Scene_Title.create (rpg_scenes.js:246)
at Function.SceneManager.changeScene (rpg_managers.js:1654)
at Function.SceneManager.updateMain (rpg_managers.js:1640)
at Function.SceneManager.update (rpg_managers.js:1576)