[RMMV] Random title screen?

● ARCHIVED · READ-ONLY
Started by seryphi 5 posts View original ↗
  1. I would like to have the title screen of my game be random from a pool of images. The biggest gimmick of my game is things being just a little bit different every time you look at them, so it would really push that aesthetic forward.
    The problem is that I can't seem to find a way to event this, and I know less than nothing about Javascript. I found this post that promised a plugin to do what I want, but for the life of me I can't seem to get it to work either... :kaodes:

    Can anyone help me get the plugin working or point me towards one that'd change the title screens?
  2. I didn't feel like looking through someone else's code so I just wrote one really quickly, it was like 10 lines of code. Copy the following and save it as "ALOE_RandomTitleBackgrounds.js" and activate it in your Plugin Manager. Then you can choose the title images in the parameters.

    Code:
    //=============================================================================
    // RPG Maker MV - Random Title Backgrounds
    // ALOE_RandomTitleBackgrounds.js
    //=============================================================================
    
    //=============================================================================
    /*:
    * @plugindesc Random Title Backgrounds
    * @author Aloe Guvner
    *
    * @param titleNames
    * @text Title Backgrounds
    * @type file[]
    * @dir img/titles1
    * @require 1
    * @desc A list of Title Backgrounds that will be randomly chosen from.
    *
    * @help
    * This plugin will choose a random background for the title from the list
    * configured in the plugin parameters.
    *
    * Free for use in commercial or non-commercial games.
    * Attribution is optional.
    *
    */
    
    (function() {
        var Parameters = PluginManager.parameters('ALOE_RandomTitleBackgrounds');
        var titles = JSON.parse(Parameters.titleNames);
        Scene_Title.prototype.createBackground = function() {
            var title = titles[Math.floor(Math.random() * titles.length)];
            this._backSprite1 = new Sprite(ImageManager.loadTitle1(title));
            this._backSprite2 = new Sprite(ImageManager.loadTitle2($dataSystem.title2Name));
            this.addChild(this._backSprite1);
            this.addChild(this._backSprite2);
        };
    })();
  3. Can you give some more information about how you want the title screen to function exactly?

    Do you want it so that on title screen load there is a random picture selected and displayed? or do you want random pictures to appear, disappear after a set time? Do you want them to scroll or have any kind of animation included?
  4. @Aloe Guvner That's perfect for what I wanted, thank you so much!!! :kaocry:

    @Kwerty Ah, yes to the first and no to the second and third? I know there are plugins out there for animated title screens, but I just wanted a different static title image when you open the game. Thank you though!!
  5. [closed]IgnoreMe[/closed]