Overlay Map Zoom

overlayZooming1

This script is an add-on for the Overlay Maps script. It allows you to set up individual map zoom levels for each overlay map, allowing you to provide depth perception.

Download

Script: download here

You will need the Overlay Maps script.
You will also need these files. Instructions below

Installation

Place this script below Overlay Maps and above Main.

Download the map zoom files and place
– the MGC_Map_Ace.dll in the System folder
– the three autotile pictures in Graphics/System folder

Usage

The zoom value that you specify for the overlay map is used to determine whether the map should be zoomed in or zoomed out. This is an option that is specified in the overlay maps note-tag like this

````
<overlay map>
map: ID
zoom: ZOOM_LEVEL
</overlay map>
````

The value that you specify is treated as a percentage. Here are some examples:

  • 0.5 is 50% zoom
  • 1 is 100% zoom
  • 1.5 is 150% zoom

Credits

MGC (rgss-factory) for the map zoom code and tilemap dll

You may also like...

29 Responses

  1. Neo fantasy says:

    I’ve been messing around with this for a few hours and no matter what I do I cannot get my map to zoom so it would look smaller. I’ve tried glueing the expanded not tags and copied and modified the note tag used in the sky city map from the demo but that only lead to more problems. Whenever I try to make the zoom a negative the map just becomes blank. Basicly what I’m trying to do is have a character on a hill staring down at a village bellow but I can’t make the village look smaller I’ve redone it over and over again but I can only get it to look normal size or mic much bigger I’m not sure what I am doing wrong (I am able to make the village map appear under the cliff map using the expanded note tags but it doesn’t give it any prespectibve and I can’t get to to zoom in or out).

    • Hime says:

      What is your note-tag? Do you have the required DLL?

      • Anonymous says:

        Yes I have the dll installed and my note tag is

        Map: 35
        Order: -1
        Sync: 0
        Zoom: -5
        Opacity 125
        </overlay map>

        • Anonymous says:

          Not sure what it is I doing wrong (yes I also put above the note tag just forgot in the comment)

          • Neo fantasy says:

            does it matter where my scripts are placed, should they be on top of all my other scripts or under ( I currently have the three overlay scripts on top of my other scripts)

        • Hime says:

          Negative values probably aren’t supported.

          0.5 is 50% normal size
          0.1 is 10% normal size

          Try something like those and see if they work.

          • Neo fantasy says:

            Ahh thank you so much I’ve got it working now I guess I just misunderstood what you meant by less then one I hadn’t thought to use decimals. This script is really going to help me thanks again for responding so quickly.

    • Hime says:

      Description has been updated with examples of zoom levels for clarity.

  2. Collie Ghostly says:

    I was hoping to use this overlay script to fix an issue I have had trying to work with the MGC Map Zoom script. I am unsure if it will or not, so I will ask:

    Can this be used to create (quote unqoute) “parallax” maps that work with MGC Map Zoom? I am trying to leave the camera zoomed in for the entire game, to create a larger more in-depth experience. I have tested this extensively to realize that it is truly what I want- the entire game to be zoomed in.

    I know how to do overlay/parallax mapping, and was using a different overlay system. I was having these problems:
    a. Using ANYTHING other than default tilesets causes graphical glitches and MGC map zoom to crash the game. Using anything beyond tileset C causes a crash too.
    b. MGC map zoom crashes on the use of other overlay systems OR
    c. Other overlay systems do not have a zoom feature and thus the overlay appears too small on the zoomed in map. (increasing the size of the overlay does not solve the problem, it just downgrades my work.)

    This is not due to other scripts, as I tested on a base game with only MGC Tilemap, MGC Map Zoom. They simply don’t play well with tilesets that are not RTP, or overlays/parallaxes. I understand there is some sort of graphic file called “autotiles_data” but I have no idea what these files do or are for in order to change them to work for me.

    TL;DR:
    Can this script be used together with MGC Map Zoom— that is to say, can I make an overlay map using this, then zoom in the game with Map Zoom without a crash, or graphical errors? (such as the overlay being too small to fit the zoomed in map)?

    • Hime says:

      Map Zoom is specifically meant for zooming the tilemap, which means it only works with tilesets. Zooming other images should be done using sprite zoom functionality. I did not include any functionality for zooming images, but I can see that it would be nice to zoom parallax images.

      • Collie Ghostly says:

        Aww, shucks. I guess I’m still looking for a way to use non-RTP materials with Map Zoom then, since other custom tilesets, or using more tilesets than A-C also cause a crash with it. :/ I suppose I will be hunting alternate method.

        Thank you for the reply.

        • Hime says:

          Consider reporting that as a bug to MGC’s post on map zoom.

          • Collie Ghostly (Alluna) says:

            The site is in another language, so I have felt a bit intimidated of reporting there? I mean, if I have another problem I might consider it.

            That being said, I discovered a work around to allow me to zoom in the entire game…or every map in the game to be zoomed, and it allows the use of other tilesets without crashes:
            I need to reset the zoom upon entering each map through an event. *When I enter it (or in some cases, before leaving the last map), I reset the zoom to 1 and turn on a switch that says I left the last map.
            * Fade out screen.
            * When the next map is entered, an event runs that returns the zoom to 2. I also use this event to apply any tints or special effects, so it serves more than one purpose.
            * Fade in screen.

            No crashes so far, however, it limits me to only using tilesets and events. Using pictures, overlays, parallaxes to add additional things to my maps is still out of the question. Though I admit- I haven’t tested your picture lock scripts with it extensively, maybe zooming in as well as locking the picture? IDK. So far not enough issues to make me worry too much.

          • Hime says:

            Pictures would need separate logic for zooming since they are not part of the tile map.

  3. Todd says:

    In your own demo I can’t get the Castle Town to show below the Sky City. I put in the Sky City Notes. What am I doing wrong?

  4. parafusion says:

    Hey Hime,

    I was just trying this code and I think it may have compatibility issues with the Region Fog, specifically line 203:

    def map_data=(new_map_data)
    @map_data = new_map_data
    @parameters[2] = @map_data
    end

    That being said, I could very well be wrong. Besides, this script seems to be from last year as well so it is probably no longer supported anyways. Just thought I'd bring it to your attention in case you were interested.

    • Hime says:

      I've added some checks to make sure that the region fog was created properly (because overlay maps do not create region fogs by default).

      You will likely see a lot of issues with map-related scripts when it comes to overlay maps because while overlay maps try to load up everything for their own map, there will inevitably be a number of things that the script simply doesn't know about and requires patches.

      • parafusion says:

        Indeed, and that is precisely the reason why I am hesitant to use the script despite the possibility it brings to the table. Due to eventing and other complications, I will likely just create maps that are used specifically for overlays, and ones that have the actual events. Tested the new script, so far it has not returned any errors . Thanks!

  5. Wolf says:

    Forgot to reply, but yes the link works just fine now. Thanks a lot.
    The overlay is my favorite script by far.

  6. Wolf says:

    The required files, I’m assuming the MGC_Map_Ace.dll link seems to be broken.

  7. Dariel Lopez says:

    Your scritps of overlay map and overlay map zoom are amazing Tsukihime. Thanks for your hard work; you made a great contribution to all of us rpg makers.

  8. chaos17 says:

    Is it possible to “jump” to the not zoomed map layer ?
    if yes, can you make a demo please ?

Leave a Reply to Collie Ghostly Cancel reply

Your email address will not be published. Required fields are marked *