TheDrifter

Veteran
Veteran
Joined
Apr 18, 2012
Messages
124
Reaction score
7
First Language
English
Primarily Uses
Hi,
I've created a brand new Test project with only two plugins in it:

Playtime Window from JGreene found here.
Code:
// MenuPlaytime.js

/*:
 * @plugindesc Provides a playtime window for your menu. Works with Yanfly Engine Plugins.
 * @author JGreene
 *
 * @help Place this plugin below all of Yanfly's Plugins in your load order.
 */

(function() {

    var _Scene_Menu_new = Scene_Menu.prototype.create;
    Scene_Menu.prototype.create = function() {
        _Scene_Menu_new.call(this);
        this._statusWindow.x = this._commandWindow.width;
        this._statusWindow.y = 0;
        this.createPlaytimeWindow();
        this._goldWindow.x = 0;
        this._goldWindow.width = this._commandWindow.width;
        this._goldWindow.y = Graphics.boxHeight - this._goldWindow.height;
    };
    
    // Refresh playtime window
    
    Scene_Menu.prototype.update = function() {
        Scene_Base.prototype.update.call(this);
        this._playtimeWindow.refresh();
    }
    
 // Playtime window
    
    Scene_Menu.prototype.createPlaytimeWindow = function() {
    this._playtimeWindow = new Window_Playtime(0, 0);
    this._playtimeWindow.width = this._commandWindow.width;
    this._playtimeWindow.x = 0;
    this._playtimeWindow.y = Graphics.boxHeight - (this._playtimeWindow.height*2);
    this.addWindow(this._playtimeWindow);
    };
    
    function Window_Playtime() {
        this.initialize.apply(this, arguments);
    }
    
    Window_Playtime.prototype = Object.create(Window_Base.prototype);
    Window_Playtime.prototype.constructor = Window_Playtime;
    
    Window_Playtime.prototype.initialize = function(x, y) {
        var width = this.windowWidth();
        var height = this.windowHeight();
        Window_Base.prototype.initialize.call(this, x, y, width, height);
        this.refresh();
    };
    
    Window_Playtime.prototype.windowWidth = function() {
        return 240;
    };
    
    Window_Playtime.prototype.windowHeight = function() {
        return this.fittingHeight(1);
    };
    
    Window_Playtime.prototype.refresh = function() {
        var x = this.textPadding();
        var width = this.contents.width - this.textPadding() * 2;
        this.contents.clear();
        this.drawText(this.value(), x, 0, width);
    };
    
    Window_Playtime.prototype.value = function() {
            return $gameSystem.playtimeText();
    };
    
    
    Window_Playtime.prototype.open = function() {
        this.refresh();
        Window_Base.prototype.open.call(this);
    };

})();

and SRD_MenuBackgrounds from SumRndmDde found here.

I've set up the Menu Backgrounds correctly:
As required, in the Test project's image folder, I created a folder called "SumRndmDde", which holds a folder called "menu" that has a single image in it.

In the editor's plugin settings for SRD_MenuBackgrounds, I made every preset parameters be the same:
ve5X6lq.png


However, for some reason, the background image doesn't scroll like it should on the Main Menu screen where the timer is shown.

It does work and scroll correctly everywhere else.

How may I fix this?
Thank you very much for your help!
 

Latest Threads

Latest Posts

Latest Profile Posts

since all my maps are hand drawn... I admit, I super envy those who can make the tileset's work. I'm garbage at mapping, but slightly less bad at just drawing my own areas. plus it's easier to draw my own sprites than edit others to look like my characters.
Guys, I made a trailer! And, I also launched the Steam page! If you would like to support the game, please Wishlist it :ahappy: ->
working on some tilesets _ノ乙(、ン、)_

CIBl8xT.png


Oq8WKHX.png
aww man, color hex code #C4C4C4 doesn't work for the tint value in this scene I need something darker, which stinks just because I liked that one it was my favorite plastic explosive three times...#696969 (nice) should work better (WHY IS MY BRAIN LIKE THIS)
Tell it to me straight, doc. If I've been trying to piece together a "shorter" game to learn stuff outside of game jams... am I just running away from my WIP? :v

Forum statistics

Threads
117,284
Messages
1,106,127
Members
153,467
Latest member
Kip_
Top