開発者は、フォーカスやズームを含むさまざまなカメラの動きを実行できるプラグイン – SRD_CameraCore.js

タイトル
Allows developers to preform various camera motions including focusing and zooming.
作者名
ヘルプ

Camera Core
Version 1.05
SumRndmDde


This plugin allows developers to preform various camera motions including
focusing and zooming.


==============================================================================
Camera Focusing
==============================================================================

If you wish for the camera to focus on something, use the following
Plugin Commands:


FocusCamera [x] [y] [duration]

Insert an X and Y coordinate on the map to have the camera focus on it.
The duration determines how many frames it takes the camera to transition.


FocusCamera event [id] [duration]

Replace "id" with an Event's ID on the current map to have the camera focus
on that specific event. The duration determines how many frames it takes the
camera to transition.


FocusCamera follower [id] [duration]

Replace "id" with a Follower's index in the current party to have the camera
focus on that specific follower. The duration determines how many frames it
takes the camera to transition.


FocusCamera player [duration]

Focues the camera onto the player.
The duration determines how many frames it takes the camera to transition.


ResetFocus [duration]

Resets the focus on the camera back to the player.
The duration determines how many frames it takes the camera to transition.


==============================================================================
Zooming
==============================================================================

In order to zoom the camera in and out, use the following commands:


ZoomIn [scale] [duration]

Set "scale" to the scale you wish the camera to zoom in.
Setting scale to 1 would be the normal scale, greater than 1 would zoom in.
The duration determines how many frames it takes the camera to transition.


ZoomOut [scale] [duration]

Set "scale" to the scale you wish the camera to zoom in.
Setting scale to 1 would be the normal scale, greater than 1 would zoom out.
The duration determines how many frames it takes the camera to transition.


ResetZoom [duration]

Resets the zoom back to its default.
The duration determines how many frames it takes the camera to transition.


==============================================================================
Camera Shifting
==============================================================================

If you wish to shift the camera, use the following Plugin Command:

ShiftCamera [x-shift] [y-shift] [duration]

This shifts the camera a certain x and/or y blocks.
This does NOT change the camera's focus. If the camera's focused on the
player, for example, and the camera is shifted upward 2 squares, the camera
will continue to follow the player, only it will be shifted up two squares.


==============================================================================
Camera Waiting
==============================================================================

If you wish to have an event "wait" before a camera is done moving, use the
following Plugin Commands:


WaitForCamera

This will stop the event processing until the camera has completed its focus
and zooming.


WaitForCameraFocus

This will wait for the camera to complete its movement to a new focus.


WaitForCameraZoom

This will wait for the camera to finish its zoom motion.


==============================================================================
Examples
==============================================================================

Here are some examples of the Plugin Commands:


==============================================================================

FocusCamera 5 7 60

FocusCamera event 2 60

FocusCamera follower 1 60

FocusCamera player 60

ResetFocus 60


==============================================================================

ZoomIn 1.2 60

ZoomOut 1.2 60

ResetZoom 60


==============================================================================
End of Help File
==============================================================================

Welcome to the bottom of the Help file.


Thanks for reading!
If you have questions, or if you enjoyed this Plugin, please check
out my YouTube channel!

https://www.youtube.com/c/SumRndmDde


Until next time,
~ SumRndmDde
パラメータ
param Default Zoom
desc The default zoom used by your RPG Maker game.
default 1

param Zoom Pictures?
desc If 'true', then Pictures created with the "Show Pictures" event will zoom with the camera.
default true

param Margin Formula
desc The formula used to determine the rendering margin when zooming out.
default (Graphics.width / scale) - Graphics.width

param Fix Black Lines
desc Yanfly's Core Engine may cause black lines to appear when zooming. Set this to 'true' to fix.
default false

ライセンス表記

紹介ページ https://github.com/SumRndmDde/RPG-Maker-MV-Plugins/blob/master/SRD_CameraCore.js