Camera Core – MV Plugin

      No Comments on Camera Core – MV Plugin

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


Look at the code or download the Plugin:


Camera Core
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.


Screenshot:

Leave a Reply

Your email address will not be published. Required fields are marked *