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 the player will remain at their current position. The player's movement must first be locked before using this function.

Signature:

move_player(tile)
ArgumentDescriptionTypeRequired
tileID or coordinate of the destination tile or a reference to the destination tile itself.String, Coordinate, or EntityYes

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 sequences or cutscenes.


Editor Node:

Visual Demo:

move_player.txt · Last modified: 2020/04/22 17:47 by justin