An open library of RPG Maker MZ plugins, powered by the community.

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

NRP Dynamic Pixi Filter - NRP_DynamicPixiFilter.js

Plugin desc : v1.00 Pixi effects are called from Dynamic plugins.

License :
・Copyright: Retained
・Commercial Use: Allowed
・Modification: Allowed
・Redistribution: Allowed
・Details: See Download Page / In-plugin documentation

Author : Takeshi Sunagawa (http://newrpg.seesaa.net/)

Website : https://github.com/NewRPGProject/MZMV_Plugin/blob/main/NRP_DynamicPixiFilter.js

Desc page : http://newrpg.seesaa.net/article/487983241.html

Download Page : https://raw.githubusercontent.com/NewRPGProject/MZMV_Plugin/main/NRP_DynamicPixiFilter.js

File name : NRP_DynamicPixiFilter.js

Help of plugin :

Call Pixi's filter effect function
 * from the DynamicAnimation&Motion plugins.
 * ※Pixi is the library used by default in RPG Maler MV/MZ.
 * 
 * This plugin is also required because
 * it is via the FilterControllerMZ.js (by Tsukimi) function.
 * https://forum.tkool.jp/index.php?threads/4306/
 * 
 * -------------------------------------------------------------------
 * [Usage]
 * -------------------------------------------------------------------
 * Once applied, it can be easily called
 * from the DynamicAnimation and Motion plugins.
 * 
 * The easiest effect to handle is "shockwave".
 * Or rather, it is difficult to incorporate anything else into combat,
 * so the following explanations will be based on that assumption.
 * 
 * ◆DynamicAnimation
 * For example, the following will display
 * the shockwave effect simultaneously with the animation.
 * ※If you do not need the animation, just do not set the image.
 * ※By default, the effect is displayed
 *   at the beginning of the animation.
 * -------------------------------------------------------------------
 * <D-Animation>
 * filterType = shockwave
 * </D-Animation>
 * -------------------------------------------------------------------
 * 
 * ◆DynamicMotion
 * The same is true for DynamicMotion.
 * ※The effect is displayed on the motion performer's side by default.
 * -------------------------------------------------------------------
 * <D-Motion>
 * filterType = shockwave
 * </D-Motion>
 * -------------------------------------------------------------------
 * 
 * -------------------------------------------------------------------
 * [Parameters]
 * -------------------------------------------------------------------
 * You can adjust the effect by specifying parameters.
 * Most of the parameters follow FilterControllerMZ.js,
 * so please refer to the explanation there for details.
 * 
 * Parameters are specified as follows.
 * -------------------------------------------------------------------
 * <D-Animation>
 * filterType = shockwave // Type of Effects
 * filterTarget = Battlers // Effects Target
 * filterX = b.width / 2 // X-coordinate
 * filterY = b.height / 2 // Y-coordinate
 * // X,Y,Radius,Amplitude,Wavelength,Brightness
 * filterParameters = [0,0,-1,30,160,1]
 * filterId = 1
 * </D-Animation>
 * -------------------------------------------------------------------
 * See below for details.
 * 
 * ◆filterType
 * Types of filter effects.
 * Basically, you should use "shockwave".
 * 
 * ◆filterTarget
 * The target of the effect.
 * The standard target is the full screen,
 * but the following can also be used.
 * 
 * - Battlers: Only battlers.
 * - Battleback: Battlebackgrounds only
 * - FullScreenWithWindow: Full screen (including windows)
 * 
 * ※The specification of Battlers and Battlebacks
 *   is a function added by this plugin.
 * ※When Battlers are specified,
 *   the origin is the upper left corner of the battler.
 *   Please be careful when changing the coordinates.
 * 
 * ◆filterSpeed
 * The speed of the effect.
 * For shockwave, it is the speed at which the effect spreads.
 * The standard value for shockwave is "0.01", so use that as a reference.
 * If you enter "1" by mistake,
 * it will be too fast and you will not be able to see it.
 * 
 * Also, if you set it to '0', it will remain in place,
 * so You will need to delete it later.
 * 
 * ◆filterX
 * ◆filterY
 * The X and Y coordinates at which the effect will be displayed.
 * May be omitted as it is displayed at the starting point
 * of the animation (or motion performer) by default.
 * 
 * ◆filterParameter
 * Parameters to be passed to FilterControllerMZ.js and Pixi.
 * However, it may be a bit advanced.
 * 
 * For example, in the case of shockwave,
 * 6 parameters are passed as follows.
 * 
 * > filterParameters = [0,0,-1,30,160,1]
 * ※Values are default settings for FilterControllerMZ.
 * 
 * But you will have to check the meaning of each value against
 * the FilterControllerMZ.js implementation and the Pixi documentation.
 * https://filters.pixijs.download/main/docs/PIXI.filters.ShockwaveFilter.html
 * 
 * In practice, the following order is supported,
 * so adjust to your liking.
 * 
 * ・center(1): X coordinate correction
 * ・center(2): Y coordinate correction
 * ・radius: maximum radius (unlimited below 0)
 * ・amplitude: intensity of fluctuation
 * ・wavelength: magnitude of fluctuation
 * ・Brightness: brightness of the shock wave
 * 
 * The top two need not be changed basically
 * because "filterX" and "filterY" need only be specified.
 * 
 * By the way, since default values are used even if not entered,
 * unnecessary items may be left blank as shown below.
 * > filterParameters = [,,,,,0]
 * 
 * ◆filterId
 * ID to operate the filter effect.
 * The ID can be a number or a string,
 * but if it is a string, enclose it in "".
 * 
 * Note that this is not necessary if the following deletion
 * or other operations are not performed.
 * ※For shockwave, it will disappear automatically
 * after a period of time, except when the speed is 0.
 * 
 * ◆filterErase
 * Delete the effect of the specified "filterId".
 * For example, the flow is as follows.
 * -------------------------------------------------------------------
 * <D-Animation:wait>
 * filterId = 1
 * filterType = godray
 * </D-Animation>
 * 
 * <D-Animation>
 * filterErase = 1
 * </D-Animation>
 * -------------------------------------------------------------------
 * Also, setting "filterErase = true" will delete all effects.
 * Please note that this applies
 * to all effects called by FilterControllerMZ.js.
 * 
 * @------------------------------------------------------------------
 * @ [Plugin Parameters]
 * @------------------------------------------------------------------

スポンサードリンク

-MZ plugins

Copyright© PGMZ - The Community-Driven Plugin Library for RPG Maker MZ , 2026 All Rights Reserved.