MZ用プラグイン

鳶嶋式 キャラに影をつける - TF_Shadow.js

シェア用テキスト:
▼鳶嶋式 キャラに影をつける(とんび@鳶嶋工房様作) - TF_Shadow.js
https://plugin-mz.fungamemake.com/archives/6955
イベントなどに丸い影をつける。影はベクター描画するので、画像ファイル不要。

ふりがな:きゃらにかげをつける

機能概要: イベントなどに丸い影をつける。影はベクター描画するので、画像ファイル不要。

利用規約(ライセンス): MITライセンス

作者:とんび@鳶嶋工房

作者サイト:http://tonbi.jp/

解説ページ:https://github.com/tonbijp/RPGMakerMZ?tab=readme-ov-fil…

ダウンロードページ:https://raw.githubusercontent.com/tonbijp/RPGMakerMZ/ma…

ファイル名:TF_Shadow.js

プラグインのヘルプ:

/*:ja
 * @target MZ
 * @plugindesc Ver.1.1.1.0 キャラに影をつける
 * @author とんび﹫鳶嶋工房(tonbi.jp)
 * @url https://github.com/tonbijp/RPGMakerMZ/blob/master/TF_Shadow.js
 *
 * @base PluginCommonBase
 * @orderAfter PluginCommonBase
 *
 * @param radius @text 大きさ(半径)
 * @desc 横, 縦
 * 規定値: 18,9
 * @type string @default 18,9
 *
 * @param shiftY @text 上下位置調整
 * @desc ファイル頭 ! による調整には自動対応する
 * ので、ここでの調整の必要はない。
 * @type number @default -2
 * @min -9999
 *
 * @param color @text 影色
 * @desc CSS Color形式
 * 規定値:#0006
 * @type string @default #0006
 *
 * @param strength @text ぼかし強度
 * @desc 大きいほどボケて薄くなる。
 * 規定値:4
 * @type number @default 4
 * 
 * @================================================
 * @help
 * イベントなどに丸い影をつける。
 * 影はベクター描画するので、画像ファイル不要。
 * 
 * プレイヤー、隊列メンバー、イベントは img/character/ の画像で
 * ! が頭についていないものには自動でつく。
 * 
 * 自動とは別の設定にしたい場合は、
 * プレイヤーと隊列メンバーはデータベースの[アクター]のメモ欄、
 * また[イベント]のメモ欄に次のタグを書ける。
 * 
 * <TF_SHADOW>
 * または、<TF_SHADOW:true>
 * 
 * 逆に影を消したい場合は以下のタグ。
 * <TF_SHADOW:false>
 * 
 * 以下で影の半径を指定できる。
 * <TF_SHADOW:横, 縦>
 *
 * [移動ルートの指定]の[スクリプト]
 * this.TF_hasShadow( true );   // 影をつける
 * this.TF_hasShadow( false );   // 影を消す
 * this.TF_shadowRadius( 20, 9 );   // 影の半径設定(横, 縦)
 *
 * ※ PluginCommonBase 定義によりパラメータや引数に V[n] を使えます。
 *
 * @================================================
 * @command hasShadow @text 影の表示
 * @desc 指定キャラの影のON・OFF
 *
 * @arg eventId @text イベントID
 * @desc
 * イベントID(数値)かイベントの名前
 * @type combo @default this
 * @option this @option player @option follower0 @option follower1 @option follower2
 *
 * @arg hasShadow @text 影を持つか
 * @desc
 * @type boolean @default true
 *
 * @================================================
 * @command shadowRadius @text 影の大きさ変更
 * @desc 指定キャラの影の大きさ変更
 * マップ移動などで元に戻ります
 *
 * @arg eventId @text イベントID
 * @desc イベントID(数値)かイベントの名前
 * 規定値: this
 * @type combo @default this
 * @option this @option player @option follower0 @option follower1 @option follower2
 *
 * @arg radius @text 影の大きさ(半径)
 * @desc 横, 縦
 * 規定値: 18,9
 * @type string @default 18,9
 *
 * @================================================
 * @command shadowY @text 影の上下位置調整
 * @desc 指定キャラの影の上下位置調整
 *
 * @arg eventId @text イベントID
 * @desc イベントID(数値)かイベントの名前
 * 規定値: this
 * @type combo @default this
 * @option this @option player @option follower0 @option follower1 @option follower2
 *
 * @arg shiftY @text 上下位置調整
 * @desc 規定値: -2
 * @type number @default -2
 * @min -9999
 * 
 * @================================================
 * @command actorShadowRadius @text アクターの影の大きさ変更
 * @desc 指定アクターの影の大きさ変更
 * マップ移動や並び替えで戻りません
 *
 * @arg actorId @text アクターID
 * @desc 規定値: 1
 * @type actor @default 1
 *
 * @arg radius @text 影の大きさ(半径)
 * @desc 横, 縦
 * 規定値: 18,9
 * @type string @default 18,9
 */

スポンサードリンク

スポンサードリンク

-MZ用プラグイン

Copyright© #ツクプラMZ , 2026 All Rights Reserved.