Restricted Move Inputs

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.

restrictedMoveInputs1

Download

Script: download here

Installation

Place this script below Materials and above Main

Usage

The following script calls will enable or disable specific directions:

disable_move_direction(dir_symbol)
enable_move_direction(dir_symbol)

Where the dir_symbolis one of the following

:UP
:LEFT
:RIGHT
:DOWN

Examples

To prevent players from moving up or down, use the script calls

disable_move_direction(:UP)
disable_move_direction(:DOWN)

To enable them again, use the script calls

enable_move_direction(:UP)
enable_move_direction(:DOWN)

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *