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

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

MZ plugins

Swivel Picture - SwivelPicture.js

Plugin desc : Allows you to freely change the angle of the picture.

License : MIT License

Author : あわやまたな (Awaya_Matana)

Website : https://awaya3ji.seesaa.net/

Desc page : https://awaya3ji.seesaa.net/article/503299840.html

File name : SwivelPicture.js

Help of plugin :

* @target MZ
* @orderAfter PluginCommonBase
* @plugindesc Allows you to freely change the angle of the picture.
* @author あわやまたな (Awaya_Matana)
* @url https://awaya3ji.seesaa.net/article/503299840.html
* @help Ver.1.1.1
* [Scripts]
* $gameScreen.swivelPicture(pictureId, angle, duration, easingType);
* //Swivel
* $gameScreen.swivelPictureRelatively(pictureId, angle, duration, easingType);
* //Swivel Relatively
* $gameScreen.setPictureSwivelInertia(pictureId, inertia, reverse);
* //Set Inertia
* $gameScreen.fixPictureAngle(pictureId);
* //FixAngle
* Enter true/false for inertia and reverse.
*
* @command swivel
* @text Swivel
* @desc Rotates the picture to the specified angle.
* @arg pictureId
* @text Picture ID
* @default 1
* @arg angle
* @text Angle
* @desc Values over 360 and negative values can also be specified.
* @default 0
* @arg easingType
* @text Easing Type
* @type select 
* @option Constant speed
* @value 0
* @option Slow start
* @value 1
* @option Slow end
* @value 2
* @option Slow start and end
* @value 3
* @default 0
* @arg duration
* @text Duration
* @desc Apply immediately with 0
* @default 24
* @arg wait
* @text Wait for Completion
* @desc Wait until it completes.
* @type boolean
* @default true
*
* @command swivelRelatively
* @text Swivel Relatively
* @desc Rotates the picture by the specified angle.
* @arg pictureId
* @text Picture ID
* @default 1
* @arg angle
* @text Angle
* @desc Values over 360 and negative values can also be specified.
* @default 0
* @arg easingType
* @text Easing Type
* @type select 
* @option Constant speed
* @value 0
* @option Slow start
* @value 1
* @option Slow end
* @value 2
* @option Slow start and end
* @value 3
* @default 0
* @arg duration
* @text Duration
* @desc Apply immediately with 0
* @default 24
* @arg wait
* @text Wait for Completion
* @desc Wait until it completes.
* @type boolean
* @default true
*
* @command setSwivelInertia
* @text Set Swivel Inertia
* @desc Keep the last momentum and rotate.
* (Rotation speed) = (Last angle) - (Previous angle)
* @arg pictureId
* @text Picture ID
* @default 1
* @arg inertia
* @text Inertia
* @type select
* @option None
* @value 0
* @option Forward
* @value 1
* @option Reverse
* @value -1
* @default 0
*
* @command fixAngle
* @text Fix Angle
* @desc Correct the stored angle to within the range of -360 to 360.
* @arg pictureId
* @text Picture ID
* @default 1
*
* @command rotate
* @text Rotate Picture
* @desc This is an improved version of the event command "Rotate Picture".
* @arg pictureId
* @text Picture ID
* @default 1
* @arg speed
* @text Speed
* @desc How many degrees to rotate per frame.
* Values over 360 and negative values can also be specified.
* @default 0
*
* @command swivelSV
* @text Swivel (Short Version)
* @desc Rotates the picture to the specified angle.
* It can be written in fewer lines.
* @arg params
* @text Parameters
* @desc From left, Picture ID, Angle, Frames, Easing Type
*  # can be omitted.
* @default #1,0,24,0
* @arg wait
* @text Wait for Completion
* @desc Wait until it completes.
* @type boolean
* @default true
*
* @command swivelRelativelySV
* @text Swivel Relatively (Short Version)
* @desc Rotates the picture by the specified angle.
* It can be written in fewer lines.
* @arg params
* @text Parameters
* @desc From left, Picture ID, Angle, Frames, Easing Type
*  # can be omitted.
* @default #1,0,24,0
* @arg wait
* @text Wait for Completion
* @desc Wait until it completes.
* @type boolean
* @default true
*

スポンサードリンク

-MZ plugins

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