— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
put_entity(entity, target_tile)
Argument | Description | Type | Required |
---|---|---|---|
entity | Entity to reposition. | Entity | Yes |
target_tile | Target tile onto which the entity will be placed. | Entity, Coordinate | Yes |
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.
put_entity(entity["slippery_chest"], "chest_destination");
Results: The entity with an ID of “slippery_chest” is immediately repositioned onto the tile with an ID of “chest_destination”.
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.