- Joined
- Aug 2, 2016
- Messages
- 54
- Reaction score
- 31
- First Language
- English
- Primarily Uses
- N/A
Hello! I have some questions about the script that can be used to zoom in the camera in RPG maker MV:
My first question is: can you make the zoomed in camera follow the player?
Here is the script I am currently using:
var xPos = $gamePlayer.screenX();
var YPos = $gamePlayer.screenY();
$gameScreen.setZoom(xPos, YPos, 2)
I've given this script to an event and set it to auto run so that the camera is zoomed in immediately when the player starts the game. I can get this script to zoom in on the player's starting position...But it doesn't follow the player around and instead the player just walks off screen. How can I make it so that the newly zoomed in camera will follow the player around?
My next question is: can you keep the camera zoomed in when the player is transferred to another room/map? And if so how??
I have found a work around to this; I can just set an event to auto run the same script each time the player enters a new room. But I was wondering if there was another way to do it so that the camera automatically stays the same?
Finally, I am having an issue where if the player presses X to bring up the menu and again to close it, the camera zooms out and defaults to normal size. The same happens after the player has a battle against a random encounter. I want the camera to remain zoomed in at all times. Is there a work around for this?
My first question is: can you make the zoomed in camera follow the player?
Here is the script I am currently using:
var xPos = $gamePlayer.screenX();
var YPos = $gamePlayer.screenY();
$gameScreen.setZoom(xPos, YPos, 2)
I've given this script to an event and set it to auto run so that the camera is zoomed in immediately when the player starts the game. I can get this script to zoom in on the player's starting position...But it doesn't follow the player around and instead the player just walks off screen. How can I make it so that the newly zoomed in camera will follow the player around?
My next question is: can you keep the camera zoomed in when the player is transferred to another room/map? And if so how??
I have found a work around to this; I can just set an event to auto run the same script each time the player enters a new room. But I was wondering if there was another way to do it so that the camera automatically stays the same?
Finally, I am having an issue where if the player presses X to bring up the menu and again to close it, the camera zooms out and defaults to normal size. The same happens after the player has a battle against a random encounter. I want the camera to remain zoomed in at all times. Is there a work around for this?



