Whats the command on $gamePlayer you would call if you want to set canMove() to false ?? If their isnt a function, which I haven't seen, how do you say:
Player cannot move
do something
Player can Move
No I cannot do this during events, this is specifically for a script.
Edit: Sorry i overread that you cant use Events for this.
Use a paralell comon event and do the following code (pseudocode):
Loop
Conditional Branch Arrow Key pressed
If yes: Set Move Route Player Wait 1Frames (Do not mark wait for completion)
Conditional Branch end
Eventcommand Wait 1 Frame
repeat above.
With this i work around it in VXAce, dont know if its the same in MV.
Can you give us example for what you want call if the player can't move?
Do you just want an if statement for if the player can't move...? If so that's just
If(!$gamePlayer.canMove()) {
// Do Stuff
}
If that's not what you wanted, you'll have to explain it better.