PIXI filters for Parallax image

definite_lee

Veteran
Veteran
Joined
Oct 23, 2015
Messages
150
Reaction score
182
First Language
English
Primarily Uses
I'm hoping for a plugin that can take the parallax image set on a map and apply a specified PIXI filter to it. If there's a way to do this without a plugin, I'm definitely open for advice as well!
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,617
Reaction score
1,426
First Language
French
Primarily Uses
RMMV
PHP:
//somewhere in your core or plugin or empty file

var cachePixiFilters = {
pixiFilterName: new PIXI.filters.BlurFilter (3,5),
//... more caches filters
};




Spriteset_Map.prototype.createParallax = function() {
    this._parallax = new TilingSprite();

    this._parallax.filters = [cachePixiFilters.pixiFilterName]; // add any filters your cached in memory here.. it should work

    this._parallax.move(0, 0, Graphics.width, Graphics.height);
    this._baseSprite.addChild(this._parallax);
};
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Enjoying my weekend at home to stay Covid free. How is everyone else doing?
If you enjoy speed mapping for RPG Maker MV check out my YouTube Channel. My latest video includes custom made tiles which makes a simple map look dynamic!

Check out my short game Hikari's World! : Chapter I, on itch.io/games.
An actual dwarf with an actual axe is not so fascinating as the fantasy counterpart...
I'm so back and forth on pre-ording MZ. I can totally wait for a better deal down the road (since I don't need the extras and waiting to see how YEP plugins turn out) but there's something about the fun in playing with "a new toy".
:rheh:

Forum statistics

Threads
100,603
Messages
977,700
Members
132,210
Latest member
Rkyfat
Top