MBS - Map Zoom

 Masked 

One apple a day keeps the doctor away
Veteran
Joined
Oct 28, 2015
Messages
75
Reaction score
225
First Language
Portuguese
Primarily Uses
N/A





MBS - Map Zoom
by Masked





Introduction
This plugin allows you to change the map zoom with some simple Plugin Commands, I made this based on this post.


Features
- The map scroll and mouse/touch movement are adapted to work with zoom;
- You can choose if the zoom is reseted when the map changes or not;
- You can choose how many time the zoom operation will take;
- You can choose the script to center on a specific coordinate or an event while zomming;
- You can make some images scale along with the map (just add [Zoom] to their names).


How to use
Save the plugin in a .js file on your game's js/plugins folder, there's no need to write the exact script name thanks to this workaround.
Further information on plugin help.


Script
GitHub: https://github.com/MaskedRpg/JS/blob/master/mv/MBS_MapZoom.js
MV Plugins: http://mvplugins.com/plugin/Masked/MBS%20-%20Map%20Zoom
 

Credits
- Masked, for creating.
 
Last edited by a moderator:

Karberus

The other Victor
Veteran
Joined
Jun 2, 2012
Messages
67
Reaction score
63
First Language
Spanish
Hey, I tried this and it works but for some reason neither the boat, ship, or airship appear while this plugin is ON. 

It's weird, for a second there I was like "I'm sure I set the starting position of the boat here o.o" lol
 

Fernyfer775

Veteran
Veteran
Joined
Oct 6, 2013
Messages
1,310
Reaction score
812
First Language
English
I really like this, just one small request. Can you add a "change to zoom in X frames" option to it? As it is now, if we use this in a cut-scene, it's a bit jarring to have it instantly zoom in, instead of smoothly zooming in. 

EDIT: If you have a map zoomed in and then you enter a battle, the game will crash upon returning to the map after battle.
 
Last edited by a moderator:

nightwalker

Villager
Member
Joined
Aug 11, 2014
Messages
22
Reaction score
4
First Language
Portuguese
Primarily Uses
I really like this, just one small request. Can you add a "change to zoom in X frames" option to it? As it is now, if we use this in a cut-scene, it's a bit jarring to have it instantly zoom in, instead of smoothly zooming in. 
Since XP I want to do that on my games. It would be an awesome feature.
 

203x

Warper
Member
Joined
May 22, 2012
Messages
2
Reaction score
0
First Language
chinese
Great!

But does not support a mouse click.
 

Vandeliar

Veteran
Veteran
Joined
Oct 31, 2013
Messages
68
Reaction score
6
First Language
German
Primarily Uses
How to use your script ??

I put it in the Event with a Plugin command:

MapZoom set 2

But, it isn't working.

Maybe i missed something ??
 

MakoTorii

Veteran
Veteran
Joined
May 9, 2013
Messages
54
Reaction score
8
First Language
English
Primarily Uses
Opening the menu and exiting while you are zooming resets the zoom back to normal. Also, the mouse control isn't working correctly after the zoom.
 

 Masked 

One apple a day keeps the doctor away
Veteran
Joined
Oct 28, 2015
Messages
75
Reaction score
225
First Language
Portuguese
Primarily Uses
N/A
Updated the script:

- Fixed the vehicle bug;

- Added zoom duration parameter on the plugin command;

- Fixed mouse movement on zoom;

- Fixed zoom reset when menu scene was called;

- Fixed crash after battle. Couldn't test it very well, though...

How to use your script ??

I put it in the Event with a Plugin command:

MapZoom set 2

But, it isn't working.

Maybe i missed something ??
That's weird, I tried the same command here and everything worked o.o

Try using the new version, maybe it were something related to the changes I did...
 

Vandeliar

Veteran
Veteran
Joined
Oct 31, 2013
Messages
68
Reaction score
6
First Language
German
Primarily Uses
After you updated it, it works perfect now.

Just a little bug, if you have a battle and go back to the map and you want to move instant, the character got 2 times stucked (looks like lag) and then

he move normal again.

I mention it after a Fight, and had still zoomed in.

But with just a waitcommand of 60 frames, this lag is gone after the battle.

but anyways, you made my day. I have big plans with your Script :D

Edit: Found the bug with the Menu also, if you enter the Main Menu and go back to the Map, you get stucked also 2 stimes.
 
Last edited by a moderator:

hmind

Veteran
Veteran
Joined
Sep 30, 2015
Messages
74
Reaction score
32
First Language
German
hey it is working so far, but when i have zoomed in and walk, every entered tile the screen jumps 48 pixels, so it's not smooth at all.

edit: sry i solved this, making the event an autorun and then erase it instead of using parallel process. thx its a nice plugin.

edit: mh with this method now after battle i am stuck and the tiles are black.. probably better to call it via notetag?
 
Last edited by a moderator:

Fernyfer775

Veteran
Veteran
Joined
Oct 6, 2013
Messages
1,310
Reaction score
812
First Language
English
Thanks for the fixes. Another thing has come up though.

If you access your party menu, and then exit the menu, the character/map spazes out for a few steps, and then it goes back to normal.
 
Last edited by a moderator:

tati light

Veteran
Veteran
Joined
Aug 15, 2015
Messages
160
Reaction score
110
First Language
English
Primarily Uses
This plugin is just what I was looking for!

However, there is a heavy bug where the entire screen stutters for a short duration when you change map or go in/out menu.

I hope this plugin gets fixed, it's really a good plugin to have.

Thanks very much for creating this plugin!
 
Last edited by a moderator:

yongilcool

Veteran
Veteran
Joined
Nov 7, 2014
Messages
60
Reaction score
10
First Language
English
Very useful plug in !  

ONLY IT HAS A FATAL BUG ..

somehow SAVING / LOADING GAME is blocked with this plug in.

It disables user from saving any game. I couldn't save any game since I installed this plug in. (is it just me?)

I made a new project and install only this plug in to test this and still couldn't save and load any game.

this will be a great plugin if this gets fixed. please look into this. thank you very much!

Thanks for fixing. it works fine ! :)
 
Last edited by a moderator:

 Masked 

One apple a day keeps the doctor away
Veteran
Joined
Oct 28, 2015
Messages
75
Reaction score
225
First Language
Portuguese
Primarily Uses
N/A
Script updated:


- Fixed map flicker after scene changes;


- Fixed save crash when using the script;


- Fixed the zoom speed, it was not working as expected (the speed decreased after each frame).


Hope you enjoy o/
 
Last edited by a moderator:

wizaerd

Adventurer
Member
Joined
Mar 13, 2012
Messages
219
Reaction score
26
First Language
English
Primarily Uses
>> Automatically center screen on character when zoom changes;

Can this be optional?  Or better yet, let me specify either an event, or an X,Y postion to zoom in on?
 

 Masked 

One apple a day keeps the doctor away
Veteran
Joined
Oct 28, 2015
Messages
75
Reaction score
225
First Language
Portuguese
Primarily Uses
N/A
>> Automatically center screen on character when zoom changes;


Can this be optional?  Or better yet, let me specify either an event, or an X,Y postion to zoom in on?
Updated the plugin, now you can do that, just use this plugin command:

Code:
MapZoom center x y
Or, if you want to center on an event:
Code:
MapZoom center event id
And to reset it:
Code:
MapZoom center reset
 
Last edited by a moderator:

wizaerd

Adventurer
Member
Joined
Mar 13, 2012
Messages
219
Reaction score
26
First Language
English
Primarily Uses
Thanx... really great for cutscenes...
 

Firgof

Artist / Designer
Veteran
Joined
Jul 29, 2012
Messages
236
Reaction score
214
First Language
English
Primarily Uses
The script doesn't seem to be playing nice with TDDP_BindPictureToMap.  Will there be compatibility for this at some point?

Also the default zooming behavior doesn't appear to center on the player character and the boxes drawn for showing the destination point are not offset relative to the amount we have zoomed in.
 

hermesisdead

Villager
Member
Joined
Oct 26, 2015
Messages
13
Reaction score
1
First Language
English
For some reason I cannot get the plugin to work. So I put in "MapZoom set 2.0 1.5 duration 20" without the quotes,  into a plugin command event, just to be trigger if a player walks up and touches it. I put on a screen flash to make sure i knew it worked and the screen flashes as it's supposed to, but for some reason there is no zoom?

I'm not sure if maybe I am missing something or not :x
 

 Masked 

One apple a day keeps the doctor away
Veteran
Joined
Oct 28, 2015
Messages
75
Reaction score
225
First Language
Portuguese
Primarily Uses
N/A
The script doesn't seem to be playing nice with TDDP_BindPictureToMap.  Will there be compatibility for this at some point?


Also the default zooming behavior doesn't appear to center on the player character and the boxes drawn for showing the destination point are not offset relative to the amount we have zoomed in.
I'll work on it and oops, my fault, I forgot to test centering the player when zooming xD


Updated it.


I didn't get what's wrong with the destination sprite, it looks normal here, try getting the updated version, maybe it had something to do with the scroll or the screen centering.

For some reason I cannot get the plugin to work. So I put in "MapZoom set 2.0 1.5 duration 20" without the quotes,  into a plugin command event, just to be trigger if a player walks up and touches it. I put on a screen flash to make sure i knew it worked and the screen flashes as it's supposed to, but for some reason there is no zoom?


I'm not sure if maybe I am missing something or not :x
Lol, worked perfectly here, are you sure you enabled it in the Plugin Manager?


Are you using any other plugin that change something with the Game_Map or Spriteset_Map?
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I am feeling better about my update schedule, I feel like I am actually getting consistent work done even if it isn’t big updates.
It's a joy to work on a well-made map. I am not regretting this commission in the least!
I'm currently being attacked by the RPG Maker Hydra: fixing one problem only to have two more rise to take its place.
Hey you! Yeah YOU! Whatcha doin' not backing up your projects? You a masochist or sumthin'? GO BACK UP YOUR PROJECTS! Sheeesh... Didn't think I'd hafta spell it out for yas.
now I need to determine, how MV determines if an auto tile is complete or not.
Edit:From what I can tell it uses Autotile kinds to do that.
Edit 2: The editor determines it and packs picture data for the engine....

Forum statistics

Threads
94,290
Messages
919,725
Members
124,038
Latest member
SupJ
Top