User Tools

Site Tools


move_character

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
move_character [2017/04/24 14:49] justinmove_character [2020/02/14 11:50] 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 the character to the specified tile at their assigned movement speed. If a walkable path is not open the character will remain at their current position.
  
 +====Signature:====
 <code python> <code python>
-move_character(character, tile_id)+move_character(character, tile)
 </code> </code>
  
 ^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 of the destination tile or a reference to the destination tile itself.|[[String]], [[Coordinate]], or [[Entity]]|Yes|
  
 <WRAP center round info 100%> <WRAP center round info 100%>
Line 17: Line 18:
  
 ====Example:==== ====Example:====
-<code python>+<code bauxite>
 move_character(entity["Sarah"], "bridge01") move_character(entity["Sarah"], "bridge01")
 </code> </code>
Line 23: Line 24:
  
 <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 segments or cutscenes+Use the **Move Character** function to move the player character or NPCs around the map during scripted sequences or cutscenes.
 </WRAP> </WRAP>
  
move_character.txt · Last modified: 2023/04/03 13:19 by justin