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

I spoke with hudell and many programmer about the Window_BattleLog class and we all just agreed to pretend this class just doesn't exists lol
I haven't been able to solidify a cohesive plot so dropped out of a game jam but, on a fun note, I pre-ordered MZ today! :LZSwink:
So I just spent the weekend...playing my own game. The one I released last year. Yep you heard that right.
Goal for MZ? None... I'm still curious how to finish my VXA project and how it looks like when it actually finished. Which will take at least another two years. Coming late again to the party.

Forum statistics

Threads
100,657
Messages
978,134
Members
132,268
Latest member
janetjoradan
Top