Engine.isTileVisibleInLayer()
Type | function |
Library | wattageTileEngine.Engine.* |
Return value | boolean |
Keywords | |
See also |
Overview
This function returns true if the tile at the specified coordinate is visible to the camera. This will factor in the scaling delta of the specified layer and the zoom level of the camera when determining visibility.
Syntax
Engine.isTileVisibleInLayer( layerIndex, row, column )
layerIndex (required)
Number. Index of the layer to check.
row (required)
Number. The row of the tile to check.
column (required)
Number. The column of the tile to check.
Examples
local tileIsVisible = engineInstance.isTileVisibleInLayer( 1, 10, 15)