Stop the camera that follows the player

Hello 👋

For the need of a map, I need the camera is fixed and doesn't follow the player in his movements.
Is it possible ? Is there a way to configure this?
yes you need to hack the scroll method called from Game_Player
PHP:
    Game_Player.prototype.updateScroll = function(lastScrolledX, lastScrolledY) {
        var x1 = lastScrolledX;
        var y1 = lastScrolledY;
        var x2 = this.scrolledX();
        var y2 = this.scrolledY();
        if (y2 > this.centerY()+5) {
            $gameMap.scrollDown(y2 - y1+9); // do ease
        }
        if (x2 < this.centerX()-6) {
            $gameMap.scrollLeft(x1 - x2+13);
        }
        if (x2 > this.centerX()+6) {
            $gameMap.scrollRight(x2 - x1+13);
        }
        if (y2 < this.centerY()-5) {
            $gameMap.scrollUp(y1 - y2+10);
        }
    };

and also rewrite all directions method with what your need.
Example for my side
PHP:
Game_Map.prototype.scrollDown = function(distance) {
        this._camDir = 2;
        if (this.height() >= this.screenTileY() && !this.camMoving) {
            this.camMoving = true;
            this._camEASING._fromDir = 2;
            this._camEASING._valuesStart._displayY = this._displayY;
            this._camEASING._valuesEnd._displayY = (this._displayY + distance);
            this._camEASING.duration(100);
            this._camEASING.start();
        };
    };

    Game_Map.prototype.scrollLeft = function(distance) {
        this._camDir = 4;
        if (this.width() >= this.screenTileX() && !this.camMoving) {
            this.camMoving = true;
            this._camEASING._fromDir = 4;
            this._camEASING._valuesStart._displayX = this._displayX;
            this._camEASING._valuesEnd._displayX = (this._displayX - distance);
            this._camEASING.duration(100);
            this._camEASING.start();
        };
    };

    Game_Map.prototype.scrollRight = function(distance) {
        this._camDir = 6;
        if (this.width() >= this.screenTileX() && !this.camMoving) {
            this.camMoving = true;
            this._camEASING._fromDir = 6;
            this._camEASING._valuesStart._displayX = this._displayX;
            this._camEASING._valuesEnd._displayX = (this._displayX + distance);
            this._camEASING.duration(100);
            this._camEASING.start();
        };
    };

    Game_Map.prototype.scrollUp = function(distance) {
        this._camDir = 8;
        if (this.height() >= this.screenTileY() && !this.camMoving) {
            this.camMoving = true;
            this._camEASING._fromDir = 8;
            this._camEASING._valuesStart._displayY = this._displayY;
            this._camEASING._valuesEnd._displayY = (this._displayY - distance);
            this._camEASING.duration(100);
            this._camEASING.start();
        };
    };
Salut !
I'm not used to doing this kind of manipulation a little technical for me.:dizzy:

Is it possible to do this for a single map, and disable it after?
Do I need a plugin to do that?
Where should I copy the codes?

Can you tell me more about how to do this please? 😀
Salut !
I'm not used to doing this kind of manipulation a little technical for me.:dizzy:

Is it possible to do this for a single map, and disable it after?
Do I need a plugin to do that?
Where should I copy the codes?

Can you tell me more about how to do this please? 😀
yes you will need a plugin if you don't know JS, sorry

Or maybe you can try to force the map width, and height with a script call.
My problem is solved thanks to this plugin! 🙂🙂🙂

https://forums.rpgmakerweb.com/index.php?threads/camera-control-plugin-by-tyruswoo.51325/

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/stop-the-camera-that-follows-the-player.90284/