Menu background

Hello everyone !

I have a little probleme with my pluggin.

I wonder :

   - Load a background in the menu (OK)

   - Scrolling the background (crash game)

This is my script :

//=============================================================================// Rito_MenuBackground.js//=============================================================================var Imported = Imported || {};Imported.Rito_MenuBackground = true;var Rito = Rito || {}; /*: * @plugindesc Adds custom and scrolling background to your menu. * @author Rito * * @help Please credit me. Usage for commercial/free game. * * @param Filename * @desc Change the file name of the background. img\system * Default: menu_bg * @default menu_bg * @param Scrolling X * @desc Change the scrolling value X. * @default 0 * @param Scrolling Y * @desc Change the scrolling value Y. * @default 0 */var parameters = PluginManager.parameters('Rito_MenuBackground');Rito.Param = Rito.Param || {};Rito.Param.bg1_x = String(parameters['Scrolling X']);Rito.Param.bg1_y = String(parameters['Scrolling Y']);Scene_MenuBase.prototype.createBackground = function() { this._backgroundSprite = new Sprite(); if (parameters['Filename'] == '') { this._backgroundSprite.bitmap = SceneManager.backgroundBitmap(); } else { this._backgroundSprite.bitmap = ImageManager.loadSystem(parameters['Filename'] || 'Filename'); } this.addChild(this._backgroundSprite);};Scene_MenuBase.prototype.update_background_effects = function() { this._backgroundSprite.origin.x += Rito.Param.bg1_x; this._backgroundSprite.origin.y += Rito.Param.bg1_y; this._backgroundSprite.update;};var _alias_rito_menu_background_effects_update = Scene_MenuBase.prototype.update;Scene_MenuBase.prototype.update = function() { _alias_rito_menu_background_effects_update.call(this); this.update_background_effects();};I have an error :

1448115941-sans-titre.jpg


I don't understand, the property work with the battlers background ...
I don't know if I'm late but at line 33 from

this._backgroundSprite = new Sprite();change to

Code:
this._backgroundSprite = new TilingSprite();
Ok thanks, i'll test that

Original thread: https://forums.rpgmakerweb.com/threads/menu-background.51113/