User Tools

Site Tools


move_player

This is an old revision of the document!


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.1581710099.txt.gz · Last modified: 2020/02/14 11:54 by justin