Simple Zoom IN/OUT plugin

I'm not a programmer, but i find out a little function in another topic.

Sets the game zoom factor (called once on scene load):$gameScreen.setZoom((SceneManager._screenWidth)/2,(SceneManager._screenHeight)/2,2.5);With this you can zoom in game, but the zoom is immediate without transition.

Anyone can made a small plugin who can Zoom IN/OUT with this features?

  • Zoom in/out (maybe with various speed for the transition)
  • Center Player on the screen
  • Set zoom region XY cooridnates
This is my idea for the definitive zoom plugin.

Best
Lakaroth
$gameScreen.startZoom(x, y, scale, duration);
$gameScreen.startZoom(x, y, scale, duration);
Thank you so much!

PS: There's a way to use varaibles?

For example to store PC or PNC position.
For centering on the player, try this:

Code:
$gameScreen.startZoom($gamePlayer.screenX(), $gamePlayer.screenY() - 24, scale, duration);
Note that this doesn't seem to work at all when the player is moving around.
I've made a plugin with all these features: http://forums.rpgmakerweb.com/index.php?/topic/48267-mbs-map-zoom/

It has some other features and works with the player moving around. I just have to fix some stuff with the background.

Original thread: https://forums.rpgmakerweb.com/threads/simple-zoom-in-out-plugin.49147/