This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
put_entity [2017/04/27 07:52] – justin | put_entity [2020/01/19 21:37] – 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, tile_id) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |entity_id|ID of the entity to reposition.|[[String]]|Yes| | + | |entity|Entity |
|tile_id|ID of the destination tile.|[[String]]|Yes| | |tile_id|ID of the destination tile.|[[String]]|Yes| | ||
Line 18: | Line 19: | ||
====Example: | ====Example: | ||
<code python> | <code python> | ||
- | put_entity(" | + | put_entity(entity["slippery_chest"], "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. |
</ | </ | ||