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 Afterimage - NRP_Afterimage.js

Plugin desc : v2.05 Gives an afterimage effect to the battler or character.

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_Afterimage.js

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

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

File name : NRP_Afterimage.js

Help of plugin :

Gives an afterimage effect to the battler or character.
 * The display time, interval, and color tone of the afterimage
 * can be adjusted using plugin parameters.
 * 
 * [Basic Usage]
 * You can execute the following script
 * by specifying the battler (or character) and calling it.
 * Basically, it is assumed to be called from DynamicMotion.
 * ※a is the battler or character.
 * 
 * ◆a.afterimage().start();
 * Start the afterimage.
 * 
 * ◆a.afterimage().end();
 * End the afterimage.
 * ※If omitted in battle,
 *   it will be automatically terminated when the action is finished.
 * ※Note that it does not automatically exit on the map.
 * 
 * ◆Example for DynamicMotion
 * ---------------------------------
 * <D-Motion:near>
 * script = a.afterimage().start();
 * </D-Motion>
 * 
 * <D-Motion:attack>
 * script = a.afterimage().end();
 * </D-Motion>
 * 
 * <D-Animation/>
 * <D-Motion:return/>
 * ---------------------------------
 * 
 * ◆Example for Movement Route
 * It is easy to write a script as follows.
 * > this.afterimage().start();
 * 
 * When finished, it will look like this
 * > this.afterimage().end();
 * 
 * It is exactly the same, except that it targets "this" instead of "a".
 * 
 * [Option]
 * Normally, the plugin parameter settings are used,
 * but the settings can be changed for each skill.
 * 
 * ◆a.afterimage().setInterval(4);
 * Set the display interval of the afterimage to 4 frames (4/60 seconds).
 * 
 * ◆a.afterimage().setDuration(30);
 * Set the display duration of the afterimage to 30 frames (30/60 seconds).
 * 
 * ◆a.afterimage().setOpacity(128);
 * Set the initial opacity of the afterimage to 128/255.
 * 
 * ◆a.afterimage().setColor([255, 255, 255, 255]);
 * Set the color tone of the afterimage to [255, 255, 255, 255].
 * ※Red, green, blue, strength in that order.
 * 
 * ◆a.afterimage().setBlendMode(1);
 * Change the afterimage blending method to 1:Add.
 * ※0:Normal, 1:Add, 2:Multiply, 3:Screen
 * 
 * ◆Example for DynamicMotion
 * Set the options after the start process as shown below.
 * 
 * ---------------------------------
 * <D-Motion:near>
 * script = a.afterimage().start(); a.afterimage().setInterval(1); a.afterimage().setDuration(100); a.afterimage().setOpacity(128); a.afterimage().setColor([255, 0, 0, 255]); a.afterimage().setBlendMode(1);
 * </D-Motion>
 * 
 * <D-Motion:attack>
 * script = a.afterimage().end();
 * </D-Motion>
 * 
 * <D-Animation/>
 * <D-Motion:return/>
 * ---------------------------------
 * 
 * [Reference]
 * The following plugin was used as a reference in the creation of this plugin.
 * 
 * SAN_ResidualSprites.js (Sanshiro)
 * https://github.com/rev2nym/SAN_ResidualSprites
 * 
 * [Terms]
 * There are no restrictions.
 * Modification, redistribution freedom, commercial availability,
 * and rights indication are also optional.
 * The author is not responsible,
 * but will deal with defects to the extent possible.
 * 
 * @param Duration
 * @type number
 * @default 30
 * @desc The time it takes for the afterimages to disappear.
 * 
 * @param Interval
 * @type number
 * @default 4
 * @desc The interval at which the afterimages are generated, set in 1/60 second increments.
 * 
 * @param Opacity
 * @type number
 * @max 255
 * @default 255
 * @desc The opacity of the afterimages when they are created.
 * 
 * @param Color
 * @type string
 * @default [0, 0, 0, 0]
 * @desc The color tone of the afterimages. eg: [128, 128, 255, 255]
 * 
 * @param BlendMode
 * @type select
 * @option 0:Normal @value 0
 * @option 1:Add @value 1
 * @option 2:Multiply @value 2
 * @option 3:Screen @value 3
 * @default 0
 * @desc How to blend afterimages.

スポンサードリンク

-MZ plugins

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