MBS - Map Zoom

● ARCHIVED · READ-ONLY
Started by  Masked  196 posts Page 10 of 10 View original ↗
  1. PixelatedBree said:
    Ah, okay--instead, click on the GitHub link, and right-click on where it says "Raw". Then hit "save link as" and save this new .js file in your plugins folder. I just tried it and got none of the "coding language". Hope it works for you, too!
    Now it worked! Thank you very much!
  2. thank you so much for this!
  3. bpm222 said:
    Is it not possible to make an instant zoom? Duration 1 still takes multiple frames and Duration 0 returns the default 60.

    Trying to use it for an evented menu, so it's a bit iffy to watch the menu zoom in every time you open it.
    I have the same question. Do I need to rewrite the plugin code for this? Is there any other solution? To be like in the SRD_CameraCore plugin, in which the zoom effect is instantaneous.
    The plugin is wonderful, but the settings are not enough...
  4. Zzzmey said:
    I have the same question. Do I need to rewrite the plugin code for this? Is there any other solution? To be like in the SRD_CameraCore plugin, in which the zoom effect is instantaneous.
    The plugin is wonderful, but the settings are not enough...
    Looks like I have a solution.
    For example.
    If the default zoom is 1.6
    then to instantly reset the zoom to 1.0 on a certain map, you need to set the following settings
    MapZoom set 0.625 0.625 duration 1
    (i.e. 1/1.6=0.625 for x and y).

    It seems to take longer to think while loading but it works.
  5. I'm having trouble use this plugin i don't know if i installed it incorrectly or what but whenever i put in the plugin commands nothing happens im still learning java script so maybe its me but i need help Capturebhyku.PNG

    buffbirdy said:
    I'm having trouble use this plugin i don't know if i installed it incorrectly or what but whenever i put in the plugin commands nothing happens im still learning java script so maybe its me but i need helpCapturebhyku.PNG
    never mind i fixed it but now i have another problem on the same map i was using the plugin event on there was suppose to be a looping background of a sky i made clear windows for my air ship map so it looks like out side but when the event is active the parallax background stops moving and im not sure if it has something to do with the plugin if any one know how to fix this problem please helpCapturebhyku.PNG
  6. I wanted to ask about this, the plugin works fine, but it seems to stop parallax backgrounds? Is there any way know to fix this?
  7. Good puglin but sadly doesnt work for me, since im using a lower screen size due to my game being full pixelart game and i needed to zoom out a bit and it ruins the sprites sadly.
  8. Hello, I'm having an issue that the camera is straight-up off-center whenever I zoom in past 1.0. This doesn't seem to be a plugin issue, as even when I disable other plugins, the issue persists. i.e., when I try different resolutions, including the default, the character is still offcenter.

    This is specifically noticeable when I zoom in a lot (like 3-4x). I know it's nitpicky, but for what I'm trying to do with the project, the issue needs to be resolved. Any ideas?1729200298929.png

    Here for example you can see most of the left bar is visible while practically none of the right one is.
  9. KitsuneForest said:
    Hello, I'm having an issue that the camera is straight-up off-center whenever I zoom in past 1.0. This doesn't seem to be a plugin issue, as even when I disable other plugins, the issue persists. i.e., when I try different resolutions, including the default, the character is still offcenter.

    This is specifically noticeable when I zoom in a lot (like 3-4x). I know it's nitpicky, but for what I'm trying to do with the project, the issue needs to be resolved. Any ideas?View attachment 320719

    Here for example you can see most of the left bar is visible while practically none of the right one is.

    Hey, it's been a while since you posted this, but I found a way to patch this (depending on the zoom in you want to make and the size of the tiles, that can be 48x48 or 32x32) with some trial and error.

    You need to edit a bit the plugin from the inside, starting from the line 304. You'll find this:
    Code:
    return _GamePlayer_centerX.call(this) / $gameMap.zoom.x;

    This line is what determines how the screen will be centered on the character when zooming in on it. In my case, since my tiles are 32x32 (instead of the default 48x48 size), I edited the line to look like this:
    Code:
    return _GamePlayer_centerX.call(this) / $gameMap.zoom.x - 0.26;

    See that I added a " - 0.26" right after the "$gameMap.zoom.x" part. That makes sure that an amount of pixels is sustracted from the left side of the screen.

    You just need to try the best possible number (using decimals in this case) for you so the screen is properly centered. The susbtraction that works best in my case was " - 0.26", but in your case can be different.

    Here's an example of how my game screen looked before and after the edit I made:

    BEFORE

    image_MBSZoom_001.png

    AFTER

    image_MBSZoom_002.png

    So I really hope this can help you with your project.

    Best regards,
    Oscar92player.
  10. Oscar92player said:
    Hey, it's been a while since you posted this, but I found a way to patch this (depending on the zoom in you want to make and the size of the tiles, that can be 48x48 or 32x32) with some trial and error.

    You need to edit a bit the plugin from the inside, starting from the line 304. You'll find this:
    Code:
    return _GamePlayer_centerX.call(this) / $gameMap.zoom.x;

    This line is what determines how the screen will be centered on the character when zooming in on it. In my case, since my tiles are 32x32 (instead of the default 48x48 size), I edited the line to look like this:
    Code:
    return _GamePlayer_centerX.call(this) / $gameMap.zoom.x - 0.26;

    See that I added a " - 0.26" right after the "$gameMap.zoom.x" part. That makes sure that an amount of pixels is sustracted from the left side of the screen.

    You just need to try the best possible number (using decimals in this case) for you so the screen is properly centered. The susbtraction that works best in my case was " - 0.26", but in your case can be different.

    Here's an example of how my game screen looked before and after the edit I made:

    BEFORE

    View attachment 332320

    AFTER

    View attachment 332321

    So I really hope this can help you with your project.

    Best regards,
    Oscar92player.
    Thanks Oscar, this does seem to work! Thanks for your input!
  11. Is there a way to disable the plugin's smoothing disabling? Its affecting pictures shown by other plugins and making them look pixellated. I think its mistaking it as part of the map or something since displaying pictures normally works fine.
  12. This weird thing happens with this plugin where my character sprites will have part of one square will be cut off and appear in a different frame. Why does it do this?
  13. Starsmooth said:
    This weird thing happens with this plugin where my character sprites will have part of one square will be cut off and appear in a different frame. Why does it do this?

    Maybe an image or screenshot of the glitch could help to give us a better idea of the error you are experiencing.
  14. First time posting but was running into some issues that others have pointed out on here referring to pictures/weather/parallax being off when zoomed in. Wanted to point out the problem code within MBS and how to fix it.

    Code:
    this.x = Math.round(-$gameMap.zoom.x * (scale.x - 1));
    this.y = Math.round(-$gameMap.zoom.y * (scale.x - 1));
    this.x += Math.round(screen.shake());
    Which can be found on the function "Spriteset_Map.prototype.updatePosition"
    and appears to cause all children sprites to be shifted to the top left, making pictures, weather, and parallax shift top left when zoomed in. You can either remove the lines above or modify the lines later in the function like so.

    Code:
    this.scale = new PIXI.Point(scale.x, scale.y);
    this._pictureContainer.x = -this.x / scale.x;
    this._pictureContainer.y = -this.y / scale.y;
    this._pictureContainer.scale = new PIXI.Point(1.0 / scale.x, 1.0 / scale.y);
    this._weather.x = -this.x / scale.x;
    this._weather.y = -this.y / scale.y;
    this._weather.scale = new PIXI.Point(1.0 / scale.x, 1.0 / scale.y);
    this._parallax.x = -this.x / scale.x;
    this._parallax.y = -this.y / scale.y;
    this._parallax.move(this._parallax.x, this._parallax.y, Graphics.width / scale.x, Graphics.height / scale.y);

    This "should" solve the issue.

    2. I saw a previous discussion over centering and so I also messed around with the code and found modifying the centerX and centerY functions inside the MBS script to match this
    Code:
    Game_Player.prototype.centerX = function () {
        return (Math.floor(_GamePlayer_centerX.call(this)) - 0.5) / $gameMap.zoom.x;
    };
    Code:
    Game_Player.prototype.centerY = function () {
        return (Math.floor(_GamePlayer_centerY.call(this)) - 0.5) / $gameMap.zoom.y;
    };


    made the zoom in on events/player perfectly centered (at least for me).
  15. I tried your code to center the player and it worked perfectly, so thank you, ReconNite!
  16. I'm having trouble with this plugin. It zooms in and out the way I want it to but it keeps screen shake from working for some reason. Screen shake works in battles but not in the regular game and it's really frustrating me.