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,616
Reaction score
1,420
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 Profile Posts

Is it strange that dropping acid is improving my game development?
I'm starting to wonder if I should go the Half Minute Hero route with my game. The character's main weapon is logistically way too strong. So I can't really let the player continuously grow it.... But if they had to build it up each time like HMH, that could work. Also it lets me take advantage of my randomly generated maps so much more. Hmm... This could work! :LZSexcite:
std::vector, std::map and std::string. Three reasons why I'd take C++ over C. :D
Today, 1,932 RPG Maker fans died from being too wow'ed. May they rest in peace.
I urge *every single one of you* to play this demo from Mhin Ra: https://forums.rpgmakerweb.com/index.php?threads/players-wanted-for-alpha-long-journey-to-farewell.123326/. It's simply amazing, it's a very high quality product with very good gameplay. This amount of effort must be recognized.

Forum statistics

Threads
99,198
Messages
962,933
Members
130,779
Latest member
moge-mic
Top