This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
move_character [2017/04/24 13:45] – justin | move_character [2023/04/03 13:18] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Moves the character to the specified tile at their assigned movement speed. If a walkable path is not open then the character will remain at their current position. | + | Moves a [[character]] to the specified |
+ | ====Signature: | ||
<code python> | <code python> | ||
- | move_character(character, | + | move_character(character, |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |character|Character (player or NPC) that will be moved.|[[Entity]]|Yes| | + | |character|[[Character]] (player or NPC) that will be moved.|[[Entity]]|Yes| |
- | |tile_id|ID of the destination tile.|[[String]]|Yes| | + | |tile|ID or [[coordinate]] |
+ | |pause|Whether or not script should be paused until the [[character]] has reached their destination. Defaults to true.|[[Boolean]]|No| | ||
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
- | If you are moving the player character, [[set_player_movement_locked|Lock/ | + | If you are moving the [[player character]], [[set_player_movement_locked|Lock/ |
</ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
- | move_character(entity[" | + | move_character(entity[" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Move Character** function to move the player character or NPCs around the map during scripted cutscenes. | + | Use the **Move Character** function to move the [[player character]] or [[npc|NPCs]] around the [[map]] during scripted |
</ | </ | ||