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

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

MZ plugins

MNKR TM Anime Light MZ - MNKR_TMAnimeLightMZ.js

Plugin desc : v1.0.2 Displays animated lights at events.

License : MIT License

Author : munokura

Website : http://x.com/munokura

Desc page : https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_TMAnimeLightMZ.js

File name : MNKR_TMAnimeLightMZ.js

Help of plugin :

@target MZ
@url https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_TMAnimeLightMZ.js
@plugindesc v1.0.2 Displays animated lights at events.
@author munokura
@license MIT License

@help
Preparation:
Save the light image in the img/system folder.
You can freely change the file name.
You can also display a different image for each event.

How to Use:
By adding the tag <animeLight:filename> to the event’s memo field,
the light will be displayed.

You can also adjust the light’s position using tags.

Memo Field (Event) Tag:
<animeLight:TMAnimeLight1 192 24 -44 4>
Displays the image TMAnimeLight1.png with an opacity of 192, 24 dots to the
right and 44 dots up from the base of the event, with a Z coordinate of 4.
The maximum opacity is 255.

In addition to the event’s memo field, you can also set the name using the
same tag in the annotation command at the top of the execution content.
If there is a tag in both the memo field and the annotation, the annotation
takes priority.

In memo tags and annotations, you can display an image without animation by
adding the number 1 after the Z coordinate.
Example: <animeLight:TMAnimeLight1 192 0 0 4 1>
In this case, the Z coordinate cannot be omitted.

Plugin Parameter Notes:
defaultZ
Sets the drawing order of the light, determining whether it will be displayed
below or above events.
0 ... Lower priority than ”Below normal characters”
2 ... Lower priority than ”Same as normal characters”
4 ... Higher priority than ”Same as normal characters”
6 ... Higher priority than ”Above normal characters”

Plugin Command:

The event number (the first number) specifies the target according to the
following rules:
-1 ... Targets the player
0 ... Targets the event executing the command
1 or greater ... Targets the event with that number

# Contact Information
This is a plugin originally created for RPG Maker MV that has been adapted for
MZ.
Please contact the modifier for any inquiries.

# Terms of Use
MIT License.
http://opensource.org/licenses/mit-license.php
You may modify and redistribute this without permission from the author, and
there are no restrictions on its use (commercial, R18, etc.).

@param range
@text The size of the animation
@desc The size of the animation
@default 0.10

@param defaultZ
@text Animation Z coordinate
@desc Animation Z coordinate
@type number
@default 4

@param frames
@text Number of frames in the animation
@desc Number of frames for the animation
@type number
@default 30

@command animeLight
@text Drawing lights
@desc Performs the drawing of the light.
@arg eventId
@text Event ID
@desc Specifies the event ID for which the light will be drawn.
@type number
@default 0
@min -1
@arg file
@text Image files
@desc Illuminating image files
@type file
@dir img/system
@arg opacity
@text Opacity
@desc Specify opacity. 0: Transparent
@type number
@default 255
@min 0
@max 255
@arg offsetX
@text X-correction
@desc X coordinate correction. Positive value: right direction / Negative value: left direction
@type number
@default 0
@min -9007
@max 9007
@arg offsetY
@text Y correction
@desc Y coordinate correction. Positive value: downward / Negative value: upward
@type number
@default 0
@min -9007
@max 9007
@arg priority
@text priority
@desc 0: Lower than [below normal characters] / 2: Lower than [same as normal characters] /
@type number
@default 6
@arg animation
@text Animation behavior
@desc Animate (zoom, shrink, repeat).
@type boolean
@on It works
@off Doesn’t work
@default true

@command animeLightRemove
@text Turning off the lights
@desc Erase the light drawing.
@arg eventId
@text Event ID
@desc Specifies the event ID to turn off the light.
@type number
@default 0
@min -1

スポンサードリンク

-MZ plugins

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