User Tools

Site Tools


move_player

Move Player


Moves the player to the specified tile at their assigned movement speed. If a walkable path is not open then the player will remain at their current position. The player's movement must first be locked before using this function.

Signature:

move_player(tile_id)
ArgumentDescriptionTypeRequired
tile_idID of the destination tile.StringYes

Lock/Unlock Player Movement must be called before using this function to prevent the player from interfering with the scripted movement.

Example:

move_player("bridge01")

Results: The player character walks from their current location to the bridge tile with an ID of “bridge01”.

Use the Move Player function to move the player character around the map during scripted segments or cutscenes.


Editor Node:

Visual Demo:

move_player.txt · Last modified: 2018/03/16 09:46 by justin