Camera Event Speed Fix! Camera Control v1.01 for RPG Maker MV

Hey RPG Makers!

This update fixes a bug in the Camera Control plugin for RPG Maker MV! When targeting the camera onto an event, it used to result in the event moving faster. This is now fixed! Big thanks to Lei Yan for bringing this bug to my attention!

You are not logged in.
Download available to supporters of the Design Counselor level and higher.

The bug actually was caused not by increasing the event’s speed, but by processing the event’s movement twice as much. This was occurring because processing a character’s movement results in the camera being able to lock onto that character, and with the old methods of camera targeting onto events, the camera wasn’t properly locking unless the movement processing occurred twice. Well, those methods have been removed, and now the camera is manually set onto the event every movement it makes. This results in much simpler code for the plugin, while achieving the expected results and a good graphical appearance.

The help section of the Camera Control plugin is included below.

Camera Control v1.01 by Tyruswoo

This Camera Control plugin allows greater control of the camera.

Terms of Use

  1. This plugin may be used in both commercial and non-commercial games.
  2. Use of this plugin requires joining Tyruswoo.com at the Design Counselor level or higher.
  3. Do not redistribute.

Crediting me in your game’s credits is appreciated, but not required. If you would like to credit me and my team, credit me as “Tyruswoo” or my whole team as the “Tyruswoo Team”. Sending me a free copy of your game is appreciated, but not required.

~Tyruswoo

Plugin Commands

  • CamSet
  • CamFollow

A Few Notes

CamSet simply places the camera at a certain position, but the camera will still be attempting to follow its current target (usually the player, by default).

CamFollow allows changing the camera’s target. This can be used to make the camera follow a certain event’s perspective. Or, the camera can be set to follow the map (i.e. a fixed perspective).

These plugin commands can be used in combination with the “Scroll Map…” event command, found on Event Commands tab 2, under the Movement section.

Plugin Command Usage

(Replace x and y with coordinates, and replace ID with an event’s ID number.)

CamSet x y

Sets the camera’s position to x and y, where x and y are integers. For example, to set the camera to coordinates x=17, y=23, we would write CamSet 17 23.

CamSet player

Sets the camera’s position to the player’s current position. For example, CamSet player.

CamSet event ID

Sets the camera’s position to the current location of the event of the given ID. For example, to set the camera to the location of event 17, we would write CamSet event 17.

CamFollow x y

Makes the camera follow (lock on) the given coordinates. This sets the camera to “follow” the map; i.e., to not move unless the “Scroll Map…” event command is used.

This is useful is conjunction with the event command “Scroll Map…” (found on Event Commands tab 2, under the Movement section). This allows for cutscenes where the camera is set to follow a certain path, but the player can still move as they please.

Note that the “Scroll Map…” event command can be used in two directions at once, allowing for diagonal panning of the camera.

CamFollow map

Makes the camera follow (lock on) the map, at the camera’s current position, without defining coordinates.

CamFollow player

Makes the camera follow the player. This is the same as the default behavior of the RPG Maker MV camera.

CamFollow event ID

Makes the camera follow the position of the given event. This can be useful in making cutscenes that follow a certain event. If the event is invisible, then it can look like the camera is simply panning across a scene.

This can also be used to allow for cutscenes where the camera is set to follow a certain path, while the player can move as they please.

Can also be used in combination with the “Scroll Map…” event command, allowing for diagonal panning of the camera.

For example, to make the camera follow event 3, use the plugin command CamFollow event 3.

Update Notes

v1.00: Plugin released.

v1.01: Fixed a bug that resulted in an event’s speed increasing when targeted by the CamFollow Event plugin command.

I hope you enjoy!

Tyruswoo

Questions or concerns? Check out the forums to ask a question. You may even find an answer there, already!

To view and submit comments on this post, you must be logged in and joined as at least a Warm Fuzzy member. Log In No account, or ready to upgrade your membership? Join the adventure!

Tyruswoo

Indie Game Designer
creating game content!

Latest RPG Maker

Pin It on Pinterest

Shares