User Tools

Site Tools


modify_navigation

Modify Navigation


Modifies the type of navigation and interaction allowed between two adjacent tiles. The acceptable values for navigation type are listed and explained on the Navigation and Interaction page.

Signature:

modify_navigation(first_tile_id, second_tile_id, navigation_type)
ArgumentDescriptionTypeRequired
first_tile_idID of the first tile.StringYes
second_tile_idID of the second tile.StringYes
navigation_typeNavigation type to set between the two tiles.Navigation TypeYes

See Replace Navigation if you'd like to update any navigation paths of a specific type relative to an entity instead of only between two adjacent tiles.

Example:

modify_navigation("tile01", "tile02", WALK_AND_INTERACT)

Results: Characters are now able to walk and interact between the tiles with IDs of “tile01” and “tile02”.

Use the Modify Navigation function to open up new routes for the player to travel through, for example when a door is opened or a blocking object has been removed from a tile.


Editor Node:

Visual Demo:

modify_navigation.txt · Last modified: 2018/03/16 09:45 by justin