Extending MBS_MapZoom Plugin

Both issues are addressed:
https://github.com/MrNybbles/RPG-Maker-MV/blob/master/nyb_Camera.js

Later this week I'll get to the TODO list.

EDIT 2:
Version: 20191127c works.
I saw you online and rushed to get the next version up.

I deleted some console.info() statements after testing and left in an = operator which JavaScript didn't like so the version ending with 'b' won't work at all.

Then I noticed I sill had the previous version printing to the console.

EDIT:
1st Move plug-in command -- 60 Lasts the same 60 frames as Wait command.
Wait event command -- delays next command by 60 frames.
2nd Move plug-in command -- Hooks in just before the 1st Move Command Unhooks.

Basically the Wait Event Command put 60 frames between the two camera move commands, but on the 61st frame the first command unhooks. It was working as intended, but not how people expect it to behave. The next version won't hook/unhook, but instead process a queue if it is not empty.
Hi!

No need to rush 😉

I tried to get to the plugin - but it seems like "nyb_SpriteExt" is now on the github instead of it!

Maybe a wrong commit?

Greetings,
Kirimoar
Thank you. :hswt:

Yeah, I committed the nyb_SpriteExt over the nyb_Camera. The history is here:
https://github.com/MrNybbles/RPG-Maker-MV/commits/master/nyb_Camera.js

And a new copy of 20191127c is now the current one.
https://github.com/MrNybbles/RPG-Maker-MV/blob/master/nyb_Camera.js

The correct commit for nyb_SpriteExt has also been done.

On GitHub it is safer to undo a commit by simply committing the older version again as things can potentially go horribly wrong if one tries reverting older files and reverts more than intended. This is called Squashing. After I committed the correct nyb_Camera the first time I was working on nyb_SpriteExt. After testing that I had a working version I made a last-second change, committed, realized that I didn't test again, tested and found I left a const out creating a syntax error, panicked, and ended my day by Squashing the wrong file.
Hello,

ah I see - well, something like that can easily happen, I know that 😅

I could test it now - chaining several commands now works as expected!

Also when zooming in with plugin command, it zoomes onto the player - but it still seems to be a bit off.
The camera goes a bit to the left, and then back to the center when zooming in, like a "curve"?

And further, it seems to stop a bit higher than the zoom began.
So if I stand in the middle between the top and bottom of the screen, after the zoom I stand a bit under the middle.

I hope you know what I mean?

Greetings
2) A smooth scroll system for following Followers, Map Events, and Vehicles. They are all derived from the same base character prototypes so there isn't much more work to do all three instead of just one.
Also when zooming in with plugin command, it zoomes onto the player - but it still seems to be a bit off.
The camera goes a bit to the left, and then back to the center when zooming in, like a "curve"?
This is usually caused by the camera hitting the edge of the screen (and is one of the major reasons I want to redo the camera system, the other is to be able to do all the math in pixels instead of pixels mixed with tiles).

I didn't go into details before but Scrolling (via $gameMap.scrollRight() and other 3 scroll functions) Scaling (via $gameScreen._zoomScale variable) are not made to work together. This causes several issues like the camera move can be unbound but the zoom-in is always bound.

Things like the Encounter Effect only use $gameScreen.setZoom() which doesn't scroll the map at all, but any move going beyond the current map edge requires scrolling.
EDIT:
I should have mentioned this before, but you can usually resolve this by extending the edge of the map that is causing the effect.

And further, it seems to stop a bit higher than the zoom began.
So if I stand in the middle between the top and bottom of the screen, after the zoom I stand a bit under the middle.
Try adding 0.5 to the Y parameter (it is fine with fractions of a tile). It's weird, I know, but the Zoom's math will currently do things like remove 1 tile from the top and 1.5 tiles from the bottom. After I do a new camera things like this shouldn't be an issue.

the cause might be that i'm miscalculating the tile math.
Hi,

I see - well, then I'll just wait until your "new camera" is ready 😉

Thanks!
Hey @MrNybbles !
Do you maybe have some new information about the "new camera"?
Quite some time has passed since your last message 🙂

Greetings,
Kirimoar

Original thread: https://forums.rpgmakerweb.com/threads/extending-mbs_mapzoom-plugin.115226/