This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
move_player [2017/04/23 17:57] – external edit 127.0.0.1 | move_player [2021/04/21 18:36] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | 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. | + | Moves the player to the specified |
+ | ====Signature: | ||
<code python> | <code python> | ||
- | move_player(" | + | move_player(tile) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |" | + | |tile|ID or [[coordinate]] of the destination [[tile]] or a reference to the destination [[tile]] itself.|[[String]], [[Coordinate]], |
+ | |||
+ | <WRAP center round info 100%> | ||
+ | [[set_player_movement_locked|Lock/ | ||
+ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
- | move_player(" | + | move_player(" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Move Player** function to ... | + | Use the **Move Player** function to move the [[player character]] around the [[map]] during scripted sequences or cutscenes. |
</ | </ | ||