PIXI filters for Parallax image

definite_lee

Veteran
Veteran
Joined
Oct 23, 2015
Messages
151
Reaction score
189
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,634
Reaction score
1,450
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);
};
 

Latest Threads

Latest Posts

Latest Profile Posts

Well.. I was going to post my randomly generated road experiments... But the new "Attach Files" on profile posts seems to be quite buggy. Also there's no more option to insert Imgur images. Highly unfortunate. Guess I'll give them a bit to fix it and go back to messing with stuff.
my first day back to working on my project and i'm pooped!! hope to get back in the rhythm soon!
I just came up with a very original RPG Idea. This is so well written that it might be the first RPG I actually finish making. (I’ve stopped all my projects halfway through development. I don’t think this one will be the same.)
Became a news junkie... except for those times I got inspired and published a chapter of any of my crazy stories. XD
Finally returning to one of my least favorite parts of game deving - mapping.
Me, adding new map: Okay, so this map will be the - wait...Map 501?! O.O E-excuse me?!
So, yup...breaking into the 500's for map count. Some are placeholders for now, since I haven't gotten around to actually mapping them yet. But soon. Very soon...oof, I'm scared.

Forum statistics

Threads
107,585
Messages
1,030,770
Members
139,693
Latest member
Vesutastic
Top