how dp i make the player stop moving

i have a cutscene where the npc moves, but i accidentally discorvered that the player can move even though i need the player to NOT DO THAT, tbh this is hilarious beacuse i noticed that to day.
A simple way is to use the Set Movement Route Event Command (Player) with no actual movement commands and set to repeat. This will essentially freeze the player in place.

Just remember to set the player free again by doing the same thing, just no repeat.
Players are also allowed to move during parallel events. Unless your cutscene cannot work as an autorun, you may want to use autorun instead. Otherwise @ZombieKidzRule has the right idea
This script will stop the player from being able to move
Code:
if($gamePlayer.moveByInputCached === undefined)
//This checks if the value is undefined

$gamePlayer.moveByInputCached = $gamePlayer.moveByInput;
//If it is undefined, it sets to the current value of $gamePlayer.moveByInput which is 'true'

$gamePlayer.moveByInput = function(){
return false;
}
To enable movement again
Code:
$gamePlayer.moveByInput = $gamePlayer.moveByInputCached;
//This resets the value of moveByInput to the cached value
accidentally discorvered that the player can move even though i need the player to NOT DO THAT,
That means that you did something wrong.

The only way how a player could move during a cutscene is if you're using a parallel process to control the cutscene, because both with autorun and triggered events the default is to stop the player.

Any cutscene should have a single controlling event containing all commands, and none of the other events that are placeholders for NPCs or whatever should have any content, they should be remote controlled by the controlling event.
and that controlling event would either be autorun or action button or player touch depending on how you want to start the cutscene.
thanks you all, i solved the problem.

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/how-dp-i-make-the-player-stop-moving.165268/