EntityLayer.getNonResourceEntityTilePosition()
Type | function |
Library | wattageTileEngine.EntityLayer.* |
Return value | Number, Number |
Keywords | |
See also |
Overview
This function will return the position of the non-resource 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.getNonResourceEntityTilePosition( id )
id (required)
Number. The ID of the non-resource entity.
Examples
local row, col = entityLayerInstance.getNonResourceEntityTilePosition(42)