Lock screen

Well, I need a plugin that will allow to lock the screen by plugin command. So player will can walk around the map without map scrolling. It will be usefull for minigames. Or if it is possible without plugin, just by script call, just tell me 😛

Thanks!
No need for a script or plugin, just make the mapsize the same size as the gamescreen and it will not scroll.


(by default, all new maps will be set to the default screen size unless you change that)
Yes, I know that, but I have too much events to handle in one screen with some random event locations...so I can't do it on default screen size 🙂
So, you would move around offscreen without seeing where your character is going? Seems not very user friendly to me 🙁
Nah, let me explain on my mini game:

http://ag-corner.com/play/pg/start

If I want to let the player move not only with LEFT-RIGHT on the map he will discover the edge of the parallax ^^ I want to avoid it
you can try to use this in a event call script :

$gameMap.setDisplayPos(0, 0);
Works almost perfect. But to lock the screen it should be parallel process event...so it have a small glitch...If i have some non moving events or map-things they will shake if player is near edge of screen 🙂
this plugin should work i don't know if it the best way to do it but it work it modify directly camera scrolling script, if you have the switch selected in the plugin ON the camera will be blocked, you can choose to block up/down or left/right in the plugin.
 

Spoiler
Code:
//=============================================================================//NoScrollCamera.js//=============================================================================/*:* @plugindesc No Scroll Camera.* @author Zarby* @param Switch ID* @desc if the switch id switch is on camera wont move* @default 10** @param LeftRightBlock* @desc true|false if true the camera will block left and right* @default true** @param UpDownBlock* @desc true|false if true the camera will block up and down* @default true*/Game_Map.prototype.scrollLeft = function (distance) {    var vparameters = PluginManager.parameters('NoScrollCamera');    var cnslr = String(vparameters['LeftRightBlock'] || 'true');    var cnsid = Number(vparameters['Switch ID'] || 10);    if (cnslr == 'false') {        if (this.isLoopHorizontal()) {            this._displayX += $dataMap.width - distance;            this._displayX %= $dataMap.width;            if (this._parallaxLoopX) {                this._parallaxX -= distance;            }        } else if (this.width() >= this.screenTileX()) {            var lastX = this._displayX;            this._displayX = Math.max(this._displayX - distance, 0);            this._parallaxX += this._displayX - lastX;        }    }    else {        if ($gameSwitches.value(cnsid) == false) {            if (this.isLoopHorizontal()) {                this._displayX += $dataMap.width - distance;                this._displayX %= $dataMap.width;                if (this._parallaxLoopX) {                    this._parallaxX -= distance;                }            } else if (this.width() >= this.screenTileX()) {                var lastX = this._displayX;                this._displayX = Math.max(this._displayX - distance, 0);                this._parallaxX += this._displayX - lastX;            }        }    }};Game_Map.prototype.scrollRight = function (distance) {    var vparameters = PluginManager.parameters('NoScrollCamera');    var cnslr = String(vparameters['LeftRightBlock'] || 'true');    var cnsid = Number(vparameters['Switch ID'] || 10);    console.log(cnsid);    console.log(cnslr);    if (cnslr == 'false') {        if (this.isLoopHorizontal()) {            this._displayX += distance;            this._displayX %= $dataMap.width;            if (this._parallaxLoopX) {                this._parallaxX += distance;            }        } else if (this.width() >= this.screenTileX()) {            var lastX = this._displayX;            this._displayX = Math.min(this._displayX + distance,        this.width() - this.screenTileX());            this._parallaxX += this._displayX - lastX;        }    }    else {        if ($gameSwitches.value(cnsid) == false) {            if (this.isLoopHorizontal()) {                this._displayX += distance;                this._displayX %= $dataMap.width;                if (this._parallaxLoopX) {                    this._parallaxX += distance;                }            } else if (this.width() >= this.screenTileX()) {                var lastX = this._displayX;                this._displayX = Math.min(this._displayX + distance,        this.width() - this.screenTileX());                this._parallaxX += this._displayX - lastX;            }        }    }};Game_Map.prototype.scrollUp = function (distance) {    var vparameters = PluginManager.parameters('NoScrollCamera');    var cnsud = String(vparameters['UpDownBlock'] || 'true');    var cnsid = Number(vparameters['Switch ID'] || 10);    if (cnsud == 'false') {            if (this.isLoopVertical()) {                this._displayY += $dataMap.height - distance;                this._displayY %= $dataMap.height;                if (this._parallaxLoopY) {                    this._parallaxY -= distance;                }            } else if (this.height() >= this.screenTileY()) {                var lastY = this._displayY;                this._displayY = Math.max(this._displayY - distance, 0);                this._parallaxY += this._displayY - lastY;            }    }    else {        if ($gameSwitches.value(cnsid) == false) {            if (this.isLoopVertical()) {                this._displayY += $dataMap.height - distance;                this._displayY %= $dataMap.height;                if (this._parallaxLoopY) {                    this._parallaxY -= distance;                }            } else if (this.height() >= this.screenTileY()) {                var lastY = this._displayY;                this._displayY = Math.max(this._displayY - distance, 0);                this._parallaxY += this._displayY - lastY;            }        }    }};Game_Map.prototype.scrollDown = function (distance) {    var vparameters = PluginManager.parameters('NoScrollCamera');    var cnsud = String(vparameters['UpDownBlock'] || 'true');    var cnsid = Number(vparameters['Switch ID'] || 10);    if (cnsud == 'false') {            if (this.isLoopVertical()) {                this._displayY += distance;                this._displayY %= $dataMap.height;                if (this._parallaxLoopY) {                    this._parallaxY += distance;                }            } else if (this.height() >= this.screenTileY()) {                var lastY = this._displayY;                this._displayY = Math.min(this._displayY + distance,                    this.height() - this.screenTileY());                this._parallaxY += this._displayY - lastY;            }    }    else {        if ($gameSwitches.value(cnsid) == false) {            if (this.isLoopVertical()) {                this._displayY += distance;                this._displayY %= $dataMap.height;                if (this._parallaxLoopY) {                    this._parallaxY += distance;                }            } else if (this.height() >= this.screenTileY()) {                var lastY = this._displayY;                this._displayY = Math.min(this._displayY + distance,                    this.height() - this.screenTileY());                this._parallaxY += this._displayY - lastY;            }        }    }};
Now works perfect, thanks! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/lock-screen.48332/