This script allows you to enable or disable movement for specific directions using script calls. When a direction is disabled, the player is unable to move in that direction on the map using the direction input keys.
Script: download here
Place this script below Materials and above Main
The following script calls will enable or disable specific directions:
dir_symbolis one of the following
:UP :LEFT :RIGHT :DOWN
To prevent players from moving up or down, use the script calls
To enable them again, use the script calls