Skip to reading
GDScript Programming & Godot

CharacterWalkPath()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Character Walk Through Waypoints

Walk through an array of waypoint references, optionally ignoring navigation.

Source table from CharacterWalkPath(), page 114
Option key / fieldMeaning and inputDefault
Character characterIdChoose a Character Designer ID; player is a runtime alias where supported.Blank
Default Waypoint Room sceneIdChoose a scene ID.Blank
Waypoint IDs / Positions waypointIdsJSON array of waypoint references in travel order.[]
Speed speedMovement speed; 0 uses the normal movement speed where supported.0
Ignore Navigation Mesh ignoreNavigationUse the direct route instead of following normal navigation constraints.false

Timing. Runs the selected movement route.

Code example
await CharacterWalkPath({"characterId": "player", "sceneId": "lab", "waypointIds": []})

In use. Supply a JSON array of marker IDs in route order, then choose the walking speed. Use local, reachable markers for a first test. A list of display labels is not a list of the stored IDs.

Page 114 of 378Permalink
Go to page