disable player control when use active window

I create action game
and create menu that not stop even on the map
but... when interact with menu
the player character still move around
so I want to disable the Actor control but not the control in menu
why?
I create game inspire by dark souls
so the enemy can kill you while you mess up with your equipment menu

so is it possible
where I would look in to this
thank you
I create action game
and create menu that not stop even on the map
but... when interact with menu
the player character still move around
so I want to disable the Actor control but not the control in menu
why?
I create game inspire by dark souls
so the enemy can kill you while you mess up with your equipment menu

so is it possible
where I would look in to this
thank you
See my post here (I'm creating exactly said plugin, soon for a real release):
https://forums.rpgmakerweb.com/inde...ey-interact-with-the-menu.117403/post-1033520

It's basically an overwrite or alias (your choice but you will have to overwrite some part at least) like this:
Spoiler: Game_Player.prototype.update (Overwrote)
Code:
  Game_Player.prototype.update = function(sceneActive) {
      var lastScrolledX = this.scrolledX();
      var lastScrolledY = this.scrolledY();
      var wasMoving = this.isMoving();
      this.updateDashing();
      if (sceneActive) {
        // Small overwrite
        $gamePlayer._mainMenu = $gamePlayer._mainMenu || {inMenu:false};
        if (!$gamePlayer._mainMenu.inMenu) this.moveByInput();
      }
      Game_Character.prototype.update.call(this);
      this.updateScroll(lastScrolledX, lastScrolledY);
      this.updateVehicle();
      if (!this.isMoving()) {
          this.updateNonmoving(wasMoving);
      }
      this._followers.update();


  };
Then set $gamePlayer._mainMenu to true whenever you want to disable movement 😉

Notes & Warnings:
Though that works in default MV with no extra plugins it may not (most likely will not) work well with other plugins that modify player movement or the menu scene.
See my post here (I'm creating exactly said plugin, soon for a real release):
https://forums.rpgmakerweb.com/inde...ey-interact-with-the-menu.117403/post-1033520

It's basically an overwrite or alias (your choice but you will have to overwrite some part at least) like this:
Spoiler: Game_Player.prototype.update (Overwrote)
Code:
  Game_Player.prototype.update = function(sceneActive) {
      var lastScrolledX = this.scrolledX();
      var lastScrolledY = this.scrolledY();
      var wasMoving = this.isMoving();
      this.updateDashing();
      if (sceneActive) {
        // Small overwrite
        $gamePlayer._mainMenu = $gamePlayer._mainMenu || {inMenu:false};
        if (!$gamePlayer._mainMenu.inMenu) this.moveByInput();
      }
      Game_Character.prototype.update.call(this);
      this.updateScroll(lastScrolledX, lastScrolledY);
      this.updateVehicle();
      if (!this.isMoving()) {
          this.updateNonmoving(wasMoving);
      }
      this._followers.update();


  };
Then set $gamePlayer._mainMenu to true whenever you want to disable movement 😉

Notes & Warnings:
Though that works in for default MV with no extra plugins it may not (most likely will not) work well with other plugins that modify player movement or the menu scene.
thank you I find your conflict with mog_chronoengine
in case who use it
you can modify at this
Code:
//==============================
// * Move By Input
//==============================
var _mog_toolSys_gPlayer_moveByInput = Game_Player.prototype.moveByInput;
Game_Player.prototype.moveByInput = function() {
    if (!this.canMoveABS() || $gameSystem.isChronoMode() ||
    อยู่ในเมนู ) {return};//อยู่ในเมนู << my edit switch
    _mog_toolSys_gPlayer_moveByInput.call(this);
};
thank you I find your conflict with mog_chronoengine
in case who use it
you can modify at this
Code:
//==============================
// * Move By Input
//==============================
var _mog_toolSys_gPlayer_moveByInput = Game_Player.prototype.moveByInput;
Game_Player.prototype.moveByInput = function() {
    if (!this.canMoveABS() || $gameSystem.isChronoMode() ||
    อยู่ในเมนู ) {return};//อยู่ในเมนู << my edit switch
    _mog_toolSys_gPlayer_moveByInput.call(this);
};
Awesome! Good job on that, not tested with mogs much really.
I'll add a patch in. Many thanks for finding that. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/disable-player-control-when-use-active-window.117764/