User Tools

Site Tools


put_entity

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
put_entity [2017/04/27 07:51] justinput_entity [2018/03/16 09:46] justin
Line 4: Line 4:
 Instantly positions an object or character onto the specified tile. Instantly positions an object or character onto the specified tile.
  
 +====Signature:====
 <code python> <code python>
 put_entity(entity_id, tile_id) put_entity(entity_id, tile_id)
Line 13: Line 14:
  
 <WRAP center round info 100%> <WRAP center round info 100%>
-If you are changing the player's position, you can also use the more convenient [[Put Player]] function which also lets you specify the player's direction.+If you are changing the player's position, you can alternatively use the more convenient [[Put Player]] function which also lets you specify the player's direction.
 </WRAP> </WRAP>
  
 ====Example:==== ====Example:====
 <code python> <code python>
-put_entity("entity_id", "tile_id")+put_entity("slippery_chest", "chest_destination")
 </code> </code>
-//Results://+//Results:// The entity with an ID of "slippery_chest" is immediately repositioned onto the tile with an ID of "chest_destination".
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Put Entity** function to ...+Use the **Put Entity** function to move objects around the scene, for example to create the illusion that the player has pushed an obstacle out of their way.
 </WRAP> </WRAP>
  
put_entity.txt · Last modified: 2021/10/30 20:17 by justin