I just ran into the same issue. It happens because if you skip the title screen, Graphics.height/width aren't yet initialized during GameMap.initialize
, so your camera height/width get set to 0.
You can fix it by initializing the camera dimensions in GameMap.setup
instead of GameMap.initialize
.
Edit: The same problem happens with Galv.CC.halfWidth
and Galv.CC.halfHeight
in $gameScreen.
I was looking at the code, since the zoom still wasn't working properly for me even after fixing both of the above issues, and I don't quite see what the zoomXTarget/zoomYTarget values are supposed to do. They're set but never referenced or used anywhere, and your version of Game_Screen.prototype.startZoom
only writes to them without also writing to zoomX/zoomY, which is what MZ uses normally. When I removed all of the unused references and changed your startZoom to modify zoomX/Y instead, the zoom started working correctly for me.
You can verify this by trying to call startZoom() with any position that isn't the center of the screen - it still zooms to the center anyway. I'm suspecting the only reason it worked before was because zoomX/zoomY were defaulted to the correct values by coincidence.