//=============================================================================
// MOON_IHateYouParallax.js
//=============================================================================
/*:
* @plugindesc v1.0: Allows for custom parallax scrolling speeds.
* @author Anton Uklein @ Moon Moon Games
* *
* @param multiplier
* @desc How fast the background should move, in percent.
*
@Default 100
* *
*
@Help Once upon a time, the creator was upset he couldn't do a space game because
the background didn't move at a different speed than the foreground. Also,
he wanted to be able to have it bigger than 768x768. So, parallax locking at
a different velocity. So now, you can make it however fast you want!
*
* Change multiplier to any value you want, but 100 is default parallax scroll
speed.
*
* !! How to properly set up parallax images for the plugin:
* Insert an exclamation point before your file, so 'Example.png' would be
'!Example.png'. Then, in the map screen, change Scroll Type to 'No Loop'.
Afterwards, change the multiplier to any value you want, in percent.
* You're done.
*
* Changelog:
v1.0: Public release.
> Changed input from decimal to percent.
> Allowed input from the plugin menu.
v0.internal.2:
> Fixed a bug where moving vertically moved parallax diagonally,
while horizontal movement did nothing at all.
v0.internal.1:
> Initial release.
*
* This plugin is licensed under CC0 - Public Domain. As much as is legally possible, you are free to build upon, enhance, and reuse this work as you see fit without any restrictions. No rights reserved.
*/
(function() {
var parameters = PluginManager.parameters('MOON_IHateYouParallax');
var multiplier = Number(parameters['multiplier']) * .01;
var _Game_Map_parallaxOy = Game_Map.prototype.parallaxOy;
var _Game_Map_parallaxOx = Game_Map.prototype.parallaxOx;
Game_Map.prototype.parallaxOx = function() {
return _Game_Map_parallaxOx.call(this) * multiplier;
};
Game_Map.prototype.parallaxOy = function() {
return _Game_Map_parallaxOy.call(this) * multiplier;
};
})();