EntityLayer.getEntityTilePosition()
Type | function |
Library | wattageTileEngine.EntityLayer.* |
Return value | Number, Number |
Keywords | |
See also |
Overview
This function will return the position of the entity with the specified ID. The position is returned as row and column.
Note that the values for row and column are continuous and thus can represent a position between tiles. The center of the tile at row 1 and column 4 would be row 0.5 and column 3.5.
Syntax
EntityLayer.getEntityTilePosition( id )
id (required)
Number. The ID of the entity.
Examples
local row, col = entityLayerInstance.getEntityTilePosition(42)