able to set map zoom to .5, but leaves surrounding tiles black and camera moves. please help

this is the script im using on an event set to parallel, because when set to autorun the player freezes after entering the new map.
var xPos = $gamePlayer.screenX();
var yPos = $gamePlayer.screenY();

$gameScreen.setZoom(xPos,yPos,scale;duration)

it looks like this



i want the map to fill the window while being zoomed out to .5 and to not cut off the map like i said.
any help is appreciated. thank you

p.s. sorry if i posted this in the wrong location, please dont delete, i have not found any solution after doing as much research as i could before posting this, im sure other people have encountered this issue.
Moved to: RPGMaker MV
I'd suggest using SRD_Camera core or some zoom plugin.
I'd suggest using SRD_Camera core or some zoom plugin.
i'm using SRD_Camera and set the trigger to parallel and it is now working, using "plugin command ZoomOut 2" that is. thanks for the fix!!

Original thread: https://forums.rpgmakerweb.com/threads/able-to-set-map-zoom-to-5-but-leaves-surrounding-tiles-black-and-camera-moves-please-help.89240/