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

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

MZ plugins

Click Animation - ClickAnimation.js

Plugin desc : Plays an animation when clicking windows/buttons.

License : MIT License

Author : nz_prism

Website : https://github.com/nz-prism/RPG-Maker-MZ/blob/master/ClickAnimation/js/plugins/ClickAnimation.js

Desc page : https://github.com/nz-prism/RPG-Maker-MZ/blob/master/ClickAnimation/js/plugins/ClickAnimation.js

Download Page : https://raw.githubusercontent.com/nz-prism/RPG-Maker-MZ/master/ClickAnimation/js/plugins/ClickAnimation.js

File name : ClickAnimation.js

Help of plugin :

* @target MZ
 * @plugindesc Plays an animation when clicking windows/buttons.
 * @author nz_prism
 * @url https://github.com/nz-prism/RPG-Maker-MZ/blob/master/ClickAnimation/js/plugins/ClickAnimation.js
 * @orderAfter ButtonPicture
 * @orderAfter OptionEx
 *
 * @help ClickAnimation.js
 * ver. 1.0.1
 * 
 * [History]
 * 03/12/2022 1.0.0 Released
 * 04/08/2022 1.0.1 Fixed a no animation issue for battler sprites
 * 
 * This plugin provides a functionality to play an animation when players click
 * clickable objects, such as windows or buttons.
 * 
 * This functionality works throughout the game including Map, Battle and Menu
 * scenes.
 * Note when players press a physical button, the animation will be played at
 * the corresponding virtual button.
 * 
 * By enabling this plugin, the transparent pixels of a picture will be
 * invalid for clicking. This prevents players from mistakenly selecting
 * different enemies than they intended to when multiple enemies are overlapped
 * each other.
 * 
 * 
 * This plugin is released under MIT license.
 * https://opensource.org/licenses/mit-license.php
 * 
 * 
 * @param clickAnimation
 * @text Click Animation
 * @desc Settings for an animation played when clicking.
 * 
 * @param clickAnimationId
 * @text Click Animation ID
 * @desc The ID of an animation played when clicking.
 * @parent clickAnimation
 * @type animation
 * 
 * @param clickAnimationMirror
 * @text Click Animation Mirror
 * @desc Specify to invert the animation horizontally.
 * @parent clickAnimation
 * @type boolean
 * @default false
 * 
 *

スポンサードリンク

-MZ plugins

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