User Tools

Site Tools


modify_navigation

This is an old revision of the document!


Modify Navigation/Interaction


Modifies the type of navigation and interaction allowed between two adjacent tiles. The acceptable values for navigation type are described below:

  • WALK_AND_INTERACT: Characters can both walk and interact between the tiles.
  • WALK_ONLY: Characters can only walk between the tiles (no interaction is allowed).
  • INTERACT_ONLY: Characters can only interact between the tiles (no walking is allowed).
  • PENDING: Characters cannot walk or interact between the tiles, but a connection is maintained. (This is in support of some future functionality.)
  • NONE: Characters cannot walk or interact between the tiles.
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.ConstantYes

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/Interaction 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.1497146474.txt.gz · Last modified: 2017/06/10 19:01 by justin