MBS - Map Zoom

Discussion in 'JS Plugin Releases (RMMV)' started by  Masked , Oct 29, 2015.

  1.  Masked 

     Masked  One apple a day keeps the doctor away Veteran

    Messages:
    75
    Likes Received:
    223
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    N/A

    [​IMG]


    [​IMG]
    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: Jul 19, 2016
    #1
  2. Karberus

    Karberus The other Victor Veteran

    Messages:
    67
    Likes Received:
    62
    Location:
    Orison
    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
     
    #2
  3. Fernyfer775

    Fernyfer775 Veteran Veteran

    Messages:
    1,299
    Likes Received:
    802
    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: Oct 30, 2015
    #3
  4. nightwalker

    nightwalker Villager Member

    Messages:
    22
    Likes Received:
    4
    First Language:
    Portuguese
    Since XP I want to do that on my games. It would be an awesome feature.
     
    #4
  5. 203x

    203x Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    chinese
    Great!

    But does not support a mouse click.
     
    #5
  6. Vandeliar

    Vandeliar Veteran Veteran

    Messages:
    68
    Likes Received:
    6
    First Language:
    German
    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 ??
     
    #6
  7. MakoTorii

    MakoTorii Veteran Veteran

    Messages:
    54
    Likes Received:
    8
    First Language:
    English
    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.
     
    #7
  8.  Masked 

     Masked  One apple a day keeps the doctor away Veteran

    Messages:
    75
    Likes Received:
    223
    Location:
    Brazil
    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...

    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...
     
    #8
    Vandeliar likes this.
  9. Vandeliar

    Vandeliar Veteran Veteran

    Messages:
    68
    Likes Received:
    6
    First Language:
    German
    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: Oct 30, 2015
    #9
  10. hmind

    hmind Veteran Veteran

    Messages:
    74
    Likes Received:
    32
    Location:
    Germany
    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: Oct 31, 2015
    #10
  11. Fernyfer775

    Fernyfer775 Veteran Veteran

    Messages:
    1,299
    Likes Received:
    802
    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: Oct 31, 2015
    #11
  12. tati light

    tati light Veteran Veteran

    Messages:
    160
    Likes Received:
    108
    First Language:
    English
    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: Oct 31, 2015
    #12
  13. yongilcool

    yongilcool Veteran Veteran

    Messages:
    60
    Likes Received:
    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: Nov 1, 2015
    #13
  14.  Masked 

     Masked  One apple a day keeps the doctor away Veteran

    Messages:
    75
    Likes Received:
    223
    Location:
    Brazil
    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: Nov 1, 2015
    #14
    yongilcool and Fernyfer775 like this.
  15. wizaerd

    wizaerd Adventurer Member

    Messages:
    219
    Likes Received:
    26
    First Language:
    English
    >> 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?
     
    #15
  16.  Masked 

     Masked  One apple a day keeps the doctor away Veteran

    Messages:
    75
    Likes Received:
    223
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    N/A
    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: Nov 2, 2015
    #16
    Fernyfer775 likes this.
  17. wizaerd

    wizaerd Adventurer Member

    Messages:
    219
    Likes Received:
    26
    First Language:
    English
    Thanx... really great for cutscenes...
     
    #17
  18. Firgof

    Firgof Artist / Designer Veteran

    Messages:
    236
    Likes Received:
    214
    First Language:
    English
    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.
     
    #18
  19. hermesisdead

    hermesisdead Villager Member

    Messages:
    13
    Likes Received:
    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
     
    #19
  20.  Masked 

     Masked  One apple a day keeps the doctor away Veteran

    Messages:
    75
    Likes Received:
    223
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    N/A
    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.

    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: Nov 3, 2015
    #20

Share This Page