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/28 19:15] – justin | put_entity [2021/04/21 18:40] – 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: | ||
<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 |
<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 ... | + | 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 31: | Line 32: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||
<WRAP half column> | <WRAP half column> | ||
====Visual Demo:==== | ====Visual Demo:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||
</ | </ |