Menu background

Rito

Veteran
Veteran
Joined
Jun 29, 2015
Messages
107
Reaction score
50
First Language
French
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 :



I don't understand, the property work with the battlers background ...
 

izyees

My Secret Santa
Veteran
Joined
Oct 24, 2015
Messages
248
Reaction score
67
First Language
english
I don't know if I'm late but at line 33 from

this._backgroundSprite = new Sprite();change to

Code:
this._backgroundSprite = new TilingSprite();
 

Rito

Veteran
Veteran
Joined
Jun 29, 2015
Messages
107
Reaction score
50
First Language
French
Ok thanks, i'll test that
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,357
Members
137,803
Latest member
andrewcole
Top