This plugin allows developers to preform various camera motions including focusing and zooming.
Look at the code or download the Plugin:
Camera Core
SumRndmDdeThis 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:
So this can be used in commercial games, right?
Is there a way to make this work as soon as the game loads? I want to have the camera zoomed permanently, but so far, this only seems to work if I step on an event – and, unfortunately, it won’t allow me to create an event on the same square that my character starts on.
Thanks!
I would try using parallel events.
When an events trigger is set to parallel, it loops continously, kind of like autorun, however, other events can run on-top
of it, and the player can still move around. Once the zoom effect is applied, you can just switch it off with self switch.
Try having the event run as parallel.
I’ve tried using this to that when I exit a room for example, it then is meant to focus on an enemy and move along with him, however, I am getting reference [eventID] not defined? Any ideas?
Your player will already be on the other map if you’ve already done the transfer. Try setting your player character to transparent so they *appear* to have left but the player is still viewing the map they just exited.
Great stuff here, as usual! I do have one question though. Is it possible to lock the camera to the mouse cursor?
The project I’m working on is based heavily on UI interaction with the mouse, and I need to be able to pan around a map a bit. If possible to be able to move the camera with mouse movement if it’s x amount of pixels away from the center of the screen (the further from the center the faster the camera scrolls) that would be awesome!
this plugin is great but im having problems,im using Yanfly CoreEngine and im trying to zoom out in one scene but black line appear around where the camera was,and the thing is i saw there was the option to fix the black line especifically because of the yanfly core but i put it to true and it still didnt work,would really apreciate if i could get some help.
It’s a pretty good plugin, along with the smooth camera one.
A shame that it doesn’t work with parallaxes mapping :'(
Pingback: 10 dicas de desenvolvimento no RPG Maker MV - Memória BIT
i keep getting a javascript error like “Octal literals are not allowed in strict mode.” whenever i try to activate an event thats supposed to zoom in on another event. not only that, but when the camera does work it only ever seems to want to zoom in on the center of the screen regardless of what i say…anybody got any ideas? i guess i can make my game work without being able to move the camera wherever but it sort of defeats the point of the plugin -_-
Octal literals means something is in octal form. aka, an Id or an x value is 002 instead of 2. This confuses javascript, bc of how octals work which is a bit complicated. Just make sure there is no leading zeros, and it should work.
I am also getting thin black lines when zooming in during battles.
Enabling the option to fix this causes my game to crash on startup with the error: cannot read property “x” of undefined.
Got excited when I saw this option as this think black line has been bugging me.. only to be met with a crash 🙁
Just a fantastic plug-in.
I always feel that your voice in the video is very passionate!
Have a happy holiday!!!
I’m trying to focus the camera on a wagon that’s moving but whenever I use the command FocusCamera event [id] [Duration] it focus in on it but wont follow it. Any idea why that might be?
I’m having an issue. Whenever I specify it to zoom or focus on the player, it doesn’t work. It zoomed when I changed the default zoom, but it won’t follow the player or even focus on them. Amy fixes?
This is been a huge help, but I’m having one issue. The point where the camera stops scrolling when at 2x is before the actual map stops, making parts of the map unseeable. Is there a way to change the stop point with this plugin or another?
when i turn on the pluggin, the game says “cannot set property paintOpacity of undefined
I really want to use this plugin.
I use Parallax and pictures for light effects and the SRD_Camera Core plugin makes the pictures too dark.
When I disable the SRD_CameraCore, the picture returns to its original black level
Can you solve this problem?
Hello! So I wanted to use this plugin but every time I try to test it to see if it works or not in my game it would just show me a black screen and the plugin would not work. Is there something I can do to fix this?
This Plugin is awesome, it opens up so many possibilities for more creativity.
Thank you very much for it.
This should be a standard functionality of the next upcoming RPG Maker.
I’m trying to use this plugin but it conflicts with Shaz’s tile size plugin and causing the camera not properly focus on the player.
This plugin is VERY handy and all that but theres one problem when going into the plugin settings i can change the default zoom and i changed it to 2 but for some reason the edge of the map is not seen by 3 times the 48 square (I dont know how to properly say it)
Theres just basically a big gap inbetween the actouly edge of the screen and what you can see as the player and that is very… annoying and i was hoping that this is just a bug that can be fixed
Just make the map bigger by 3 squares around all the edges, keep the edges blank. That way the camera “cuts off” the edges and you can move to the absolute edge of your map as intended.
It’s a great plugin I’ve ever use. But unfortunately, it doesn’t work for another plugin like MOG_Weather_EX (Moghunter). If I want to use the plugin, I have to turn off one of the plugins. But tbh, this Camera Core plugin is the best for me.