MZ用プラグイン

ピクチャの角度指定 - SwivelPicture.js

シェア用テキスト:
▼ピクチャの角度指定(あわやまたな様作) - SwivelPicture.js
https://plugin-mz.fungamemake.com/archives/6504
ピクチャの角度を自由に変更可能にします。

ふりがな:ぴくちゃのかくどしてい

機能概要: ピクチャの角度を自由に変更可能にします。

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

作者:あわやまたな

作者サイト:https://awaya3ji.seesaa.net/

解説ページ:https://awaya3ji.seesaa.net/article/503299840.html

ファイル名:SwivelPicture.js

プラグインのヘルプ:

/*:ja
* @target MZ
* @orderAfter PluginCommonBase
* @plugindesc ピクチャの角度を自由に変更可能にします。
* @author あわやまたな (Awaya_Matana)
* @url https://awaya3ji.seesaa.net/article/503299840.html
* @help [スクリプト]
* $gameScreen.swivelPicture(pictureId, angle, duration, easingType);
* //回転
* $gameScreen.swivelPictureRelatively(pictureId, angle, duration, easingType);
* //相対的に回転
* $gameScreen.setPictureSwivelInertia(pictureId, inertia, reverse);
* //回転慣性の設定
* $gameScreen.fixPictureAngle(pictureId);
* //角度の修正
* inertia、reverseはtrue/falseを入力。
*
* [更新履歴]
* 2024/05/12:Ver.1.0.0 公開。
* 2024/05/19:Ver.1.1.0 慣性、角度の修正を追加。PictureControlExtendに対応。
* 2024/05/27:Ver.1.1.1 短縮版コマンドを追加。
*
* @command swivel
* @text 回転
* @desc ピクチャを指定した角度まで回転します。
* @arg pictureId
* @text ピクチャID
* @default 1
* @arg angle
* @text 角度
* @desc 360を超える値や負の値も指定可能。
* @default 0
* @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 swivelRelatively
* @text 相対的に回転
* @desc ピクチャを指定した角度ぶん回転します。
* @arg pictureId
* @text ピクチャID
* @default 1
* @arg angle
* @text 角度
* @desc 360を超える値や負の値も指定可能。
* @default 0
* @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 setSwivelInertia
* @text 回転慣性の設定
* @desc 最後の勢いを維持して回転します。
* (回転速度)=(最後の角度)-(ひとつ前の角度)
* @arg pictureId
* @text ピクチャID
* @default 1
* @arg inertia
* @text 慣性
* @type select
* @option なし
* @value 0
* @option 正転
* @value 1
* @option 逆転
* @value -1
* @default 0
*
* @command fixAngle
* @text 角度の修正
* @desc 格納されている角度を-360~360の範囲内に修正します。
* @arg pictureId
* @text ピクチャID
* @default 1
*
* @command rotate
* @text ピクチャの回転
* @desc イベントコマンド「ピクチャの回転」の改善版です。
* @arg pictureId
* @text ピクチャID
* @default 1
* @arg speed
* @text 速度
* @desc 1フレーム毎に何度回転するか。
* 360を超える値や負の値も指定可能。
* @default 0
*
* @command swivelSV
* @text 回転(短縮版)
* @desc ピクチャを指定した角度まで回転します。
* より少ない行数で表記可能です。
* @arg params
* @text パラメータ
* @desc 左からピクチャID、角度、フレーム数、イージング
* 記号#は無くても問題ないです。
* @default #1,0,24,0
* @arg wait
* @text 完了までウェイト
* @desc 完了するまで待ちます。
* @type boolean
* @default true
*
* @command swivelRelativelySV
* @text 相対的に回転(短縮版)
* @desc ピクチャを指定した角度ぶん回転します。
* より少ない行数で表記可能です。
* @arg params
* @text パラメータ
* @desc 左からピクチャID、角度、フレーム数、イージング
* 記号#は無くても問題ないです。
* @default #1,0,24,0
* @arg wait
* @text 完了までウェイト
* @desc 完了するまで待ちます。
* @type boolean
* @default true
*
*/

スポンサードリンク

スポンサードリンク

-MZ用プラグイン

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