Camera Core – MV Plugin

      20 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:

20 thoughts on “Camera Core – MV Plugin

    1. StyX92

      This is my problem too.
      Its the same as the other zoom scripts. Pictures like busts, or this message style plugin and others will get shifted. Maybe Dude find a way to fix it

      Reply
  1. Verdelite

    Hello there 🙂
    I am using your plugin in conjunction with TDD’s Bind Pictures to Map plugin (http://forums.rpgmakerweb.com/index.php?/topic/46776-bind-pictures-to-map/) and whenever a battle starts where TDD’s plugin is active, I am given the following error:
    TypeError: Cannot read property ‘below_weather’ of undefined
    at Game_Picture.layer (X/js/plugins/TDDP_BindPicturesToMap.js:287)
    at Sprite_Picture.updateLayer (X/js/plugins/TDDP_BindPicturesToMap.js:202)
    at Sprite_Picture.updateOther (X/js/plugins/TDDP_BindPicturesToMap.js:217)
    at Sprite_Picture.update (rpg_sprites.js:1926)
    at Sprite_Picture.initialize (rpg_sprites.js:1911)
    at new Sprite_Picture (rpg_sprites.js:1900)
    at Scene_Battle.Spriteset_Base.createPictures [as createPicturesForCameraCore] (rpg_sprites.js:2186)
    at Scene_Battle.createSpriteset (X/js/plugins/SRD_CameraCore.js:593)
    at Scene_Battle.createDisplayObjects (rpg_scenes.js:2141)
    at Scene_Battle.create (rpg_scenes.js:2034)
    Do you think this can be fixed?

    Keep up the good work, I love your plugins <3
    Verdelite

    Reply
  2. Richard Lambert

    Hello, when using your zoom plugin, there is noticeable jittering of event items and characters when moving or even just staying put on the map. Is there any way to fix this?

    Reply
  3. ParallaxPanda

    I noticed that if you have a map that is the same size as the screen and you use say a zoom x2 effect you the camera will not move with the player. Probably because it doesn’t realize that you cannot see the entire screen which you would be able to if you didn’t zoom in. Can this be fixed?

    Reply
  4. Hyon Sieverson

    Hi There! We are searching for some people that might be interested in from working their home on a full-time basis. If you want to earn $200 a day, and you don’t mind developing some short opinions up, this might be perfect opportunity for you! Simply check out the link here NOW!

    http://writingjobincome.com

    Reply
  5. Rudi91

    Im getting low fps with this plugin, is it because I have a shitty laptop? (pentium with intel hd)

    Reply
  6. Ariana

    Hey, I’m trying to use this plug-in, but the zoom never seems to focus on what I want it to??? I put “ZoomIn 1.5 20” but no matter where I have the camera focused, it always zooms in on the center of the screen, and does not follow the player.

    Reply
  7. Jaco Stander

    Have anyone ever encountered the error: octal literals not allowed in strict mode

    When I disable the plugin, no more error…

    very strange, think something to do with node.js

    Reply
  8. Stephanie

    Is this plugin still working because as soon as I install it and try to test my game, it’s automatically a black screen. Am I missing something? Cause I have to say I’m a beginner with RPG maker MV and I have no knowledge in programming so I’m trying to figure everything with tutorial video!

    Reply
  9. Lazy Programmer

    So many things wrong with this plugin.

    You have an if statement with followed by an else if statement with the same logic, and a method with an argument that isn’t even used – and you pass arguments to that method! /facepalm.

    I guess I’ll just have to write my own /lazy.

    Reply
  10. DRAftermathDev

    I found a bug in this plugin. Every time I try using the Flash Screen command, nothing happens. I noticed that when I turn off this plugin, the issue is resolved. Is there something I can do to let the screen flash while using your command, or will this have to be an update of some kind?

    Reply
  11. Candacis

    The WaitForCamera and WaitForCameraFocus commands are not working for me. No matter in which event I put these commands, they do not wait for the camera shift.

    Reply
  12. Candacis

    Just wanted to let you know, that this plugin has a compability issue with Kaus Ultimate Overlay plugin.
    With Kaus’ Overlay plugin active, the plugin commands in your camera plugin don’t work anymore. Do you know the reason why?

    Reply

Leave a Reply

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