This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
move_character [2017/04/22 20:34] – external edit 127.0.0.1 | move_character [2021/04/21 18:36] – 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(self, " | + | move_character(character, tile) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |self|Description.|[[String]]|Yes| | + | |character|[[Character]] (player or NPC) that will be moved.|[[Entity]]|Yes| |
- | | " | + | |tile|ID or [[coordinate]] of the destination tile or a reference to the destination [[tile]] itself.|[[String]], [[Coordinate]], |
+ | |||
+ | <WRAP center round info 100%> | ||
+ | If you are moving the [[player character]], | ||
+ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
- | move_character(self, "tile_id") | + | move_character(entity[" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Move Character** function to ... | + | Use the **Move Character** function to move the [[player character]] or [[npc|NPCs]] around the [[map]] during scripted sequences or cutscenes. |
</ | </ | ||