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 *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax