This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| put_entity [2018/03/16 09:46] – justin | put_entity [2021/10/30 20:17] (current) – justin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ---- | ---- | ||
| - | Instantly positions an object or character onto the specified tile. | + | Instantly positions an [[object]] or [[character]] onto the specified |
| ====Signature: | ====Signature: | ||
| <code python> | <code python> | ||
| - | put_entity(entity_id, tile_id) | + | put_entity(entity, target_tile) |
| </ | </ | ||
| ^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 | + | |target_tile|Target [[tile]] onto which the [[entity]] will be placed.|[[Entity]], [[Coordinate]]|Yes| |
| <WRAP center round info 100%> | <WRAP center round info 100%> | ||
| - | If you are changing the player' | + | If you are changing the [[player_character|player' |
| </ | </ | ||
| ====Example: | ====Example: | ||
| - | < | + | < |
| - | put_entity(" | + | put_entity(entity[" |
| </ | </ | ||
| - | // | + | // |
| <WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
| - | 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. | + | Use the **Put Entity** function to move [[object|objects]] around the scene, for example to create the illusion that the [[player_character|player]] has pushed an obstacle out of their way. |
| </ | </ | ||
| Line 32: | Line 32: | ||
| <WRAP half column> | <WRAP half column> | ||
| ====Editor Node:==== | ====Editor Node:==== | ||
| - | {{:wiki: | + | {{: |
| </ | </ | ||
| <WRAP half column> | <WRAP half column> | ||
| ====Visual Demo:==== | ====Visual Demo:==== | ||
| - | {{:wiki: | + | {{: |
| </ | </ | ||
| </ | </ | ||