random title display on start

WorldWakeSTU

Veteran
Veteran
Joined
Feb 5, 2015
Messages
95
Reaction score
6
Primarily Uses
TitleScreenRandomImgSelector version 2.0
WorldWakeSTU

Introduction
This script is for setting the title screen background to a random image of a selected group when the game starts.

Features
displays images from an array at random

Screenshots
currently no screenshots are available.

(this only changes the title background so showing it do that is a little hard for me.)

How to Use
under titleScreens in the plugin manager and the names of the images like so:

Castle,DemonCastle,Crystal

Demo
currently no demo available.

Script

/****************************************
 TitleScreenRandomImgSelector_v2.js
****************************************/

/*:
 * @plugindesc Displays a random background image for the title screen.
 * @author WorldWakeSTU
 *
 * @param TitleScreens
 * @desc The number of images being used for random selection on the title scene.
 * Default: DemonCastle,Castle,Crystal
 * @default DemonCastle,Castle,Crystal
 *
 *@help
 *-------------------------------------------------------------------
 * Free for non commercial and non-commercial use.
 * Version 2.0
 *-------------------------------------------------------------------
 *
 * --------------------------------------------------------------------------------
 * Required Files
 * --------------------------------------------------------------------------------
 * image name in array with no spaceing or ""
 *
 * --------------------------------------------------------------------------------
 * Version History
 * --------------------------------------------------------------------------------
 * 2.0 - TitleScreenRandomImgSelector_v2
 * -- changed how the images are obtained. * 1.0 - TitleScreenRandomImgSelector
 *//*
 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 *|                                    |
 *|        complete plugin    12/1/2015    |
 *|                                    |
 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 */


            

 /*******************************************************************************
 *        WorldWakeSTU personal patch
 *******************************************************************************/
(function() {
    var parameters = PluginManager.parameters('TitleScreenRandomImgSelector_v2');
    var selectedImageArray = parameters['TitleScreens'].split(/\s*,\s*/) || ['Castle','DemonCastle','Crystal'];
    console.log(selectedImageArray);
        Scene_Title.prototype.createBackground = function() {
            this._backSprite1 = new Sprite(ImageManager.loadTitle1(selectedImageArray[Math.randomInt(selectedImageArray.length)]));
            this._backSprite2 = new Sprite(ImageManager.loadTitle2($dataSystem.title2Name));
            this.addChild(this._backSprite1);
            this.addChild(this._backSprite2);
        }
})();
 
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

JDgoldvox wrote on Mr. Detective's profile.
hey, could u help me with a problem? basically, How do I delete a character from a map after a cut scene is over? I am really new with RPG maker MV. Please help!
The most rewarding part of making custom body character parts is absolutely not making the masks work. Somebody please put me out of my misery.
Any commercial devs here ever mess with Gamejolt? Been contemplating making my games available there but don't know if it's worth the effort or not.
Social distancing taught me of how much of not a loner I am. Dammit, I miss seeing my friends...
Happy 4th of July all. Anybody have plans? Mine here is staying home away from the virus. Still a nice 3 day weekend.

Forum statistics

Threads
99,262
Messages
963,606
Members
130,856
Latest member
superfluffy
Top