Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
There's a simple way to ensure that the player can't move. Just create a Move Event that makes the player "Move toward the player". Since the player can't move toward itself it creates a contradiction and the player won't be able to move.
To make the player move again so the same thing except with "Move away from player" instead.