当サイトの運営者です。ゲーム制作とプラグイン開発が好きで、コミュニティに貢献したいと考えています。
RPGツクールMZでゲームを制作中です。
※プログラマ・エンジニアではありません。
ピクチャのオフセット - PictureOffsets.js
シェア用テキスト:
▼ピクチャのオフセット(あわやまたな様作) - PictureOffsets.js
https://plugin-mz.fungamemake.com/archives/6476
ピクチャの表示をある値を基準に動かせるようにします。
ふりがな:ぴくちゃのおふせっと
機能概要: ピクチャの表示をある値を基準に動かせるようにします。
利用規約(ライセンス): MITライセンス
作者:あわやまたな
作者サイト:https://awaya3ji.seesaa.net/
解説ページ:https://awaya3ji.seesaa.net/article/503283296.html
ファイル名:PictureOffsets.js
プラグインのヘルプ:
/*:ja * @target MZ * @orderAfter PluginCommonBase * @plugindesc ピクチャの表示をある値を基準に動かせるようにします。 * @author あわやまたな (Awaya_Matana) * @url https://awaya3ji.seesaa.net/article/503283296.html * @help [スクリプト] * $gameScreen.movePictureOffsets(pictureId, x, y, scaleX, scaleY, opacity, duration, easingType); * //オフセットの移動 * $gameScreen.movePictureOffsetsRelatively(pictureId, x, y, scaleX, scaleY, opacity, duration, easingType); * //オフセットの相対移動 * $gameScreen.setPictureName(pictureId, name); * //画像の変更 * * [更新履歴] * 2024/05/11:Ver.1.0.0 公開。 * 2024/05/12:Ver.1.0.1 スクリプトを追加。 * 2024/05/18:Ver.1.1.0 PictureControlExtendに対応。 * 2024/05/26:Ver.1.1.1 短縮版コマンドを追加。 * * @command moveOffsets * @text オフセットの移動 * @desc ピクチャの表示をずらします。 * @arg pictureId * @text ピクチャID * @default 1 * @arg x * @text X座標 * @default 0 * @arg y * @text Y座標 * @default 0 * @arg scaleX * @text 拡大率X * @default 100 * @arg scaleY * @text 拡大率Y * @default 100 * @arg opacity * @text 不透明度 * @default 255 * @arg easingType * @text イージング * @type select * @option 一定速度 * @value 0 * @option ゆっくり始まる * @value 1 * @option ゆっくり終わる * @value 2 * @option ゆっくり始まってゆっくり終わる * @value 3 * @default 0 * @arg duration * @text 時間 * @desc 0で即時適用 * @default 24 * @arg wait * @text 完了までウェイト * @desc 完了するまで待ちます。 * @type boolean * @default true * * @command moveOffsetsRelatively * @text オフセットの相対移動 * @desc ピクチャの表示を相対的にずらします。 * @arg pictureId * @text ピクチャID * @default 1 * @arg x * @text X座標 * @default 0 * @arg y * @text Y座標 * @default 0 * @arg scaleX * @text 拡大率X * @default 100 * @arg scaleY * @text 拡大率Y * @default 100 * @arg opacity * @text 不透明度 * @default 255 * @arg easingType * @text イージング * @type select * @option 一定速度 * @value 0 * @option ゆっくり始まる * @value 1 * @option ゆっくり終わる * @value 2 * @option ゆっくり始まってゆっくり終わる * @value 3 * @default 0 * @arg duration * @text 時間 * @desc 0で即時適用 * @default 24 * @arg wait * @text 完了までウェイト * @desc 完了するまで待ちます。 * @type boolean * @default true * * @command changeImage * @text 画像の変更 * @desc ピクチャの画像のみを変更します。 * @arg pictureId * @text ピクチャID * @default 1 * @arg name * @text 名前 * @type file * @dir img/pictures * * @command moveOffsetsSV * @text オフセットの移動(短縮版) * @desc ピクチャの表示をずらします。 * より少ない行数で表記可能です。 * @arg params * @text パラメータ * @desc 左からピクチャID、座標、拡大率、不透明度、フレーム数、イージング * 記号#、%、()は無くても問題ないです。 * @default #1,(0,0),(100%,100%),255,24,0 * @arg wait * @text 完了までウェイト * @desc 完了するまで待ちます。 * @type boolean * @default true * * @command moveOffsetsRelativelySV * @text オフセットの相対移動(短縮版) * @desc ピクチャの表示を相対的にずらします。 * より少ない行数で表記可能です。 * @arg params * @text パラメータ * @desc 左からピクチャID、座標、拡大率、不透明度、フレーム数、イージング * 記号#、%、()は無くても問題ないです。 * @default #1,(0,0),(100%,100%),255,24,0 * @arg wait * @text 完了までウェイト * @desc 完了するまで待ちます。 * @type boolean * @default true * */