EntityLayer.centerNonResourceEntityOnTile()

   
Type function
Library wattageTileEngine.EntityLayer.*
Return value VOID
Keywords  
See also  

Overview

This function will center the entity associated with the specified ID on the tile specified by the coordinates.

Syntax

EntityLayer.centerNonResourceEntityOnTile( id, row, column )
id (required)

Number. The ID of the entity to center.

row (required)

Number. The row of the tile to center the entity on.

NOTE: Row numbers start at 1 and increase from top to bottom.

column (required)

Number. The column of the tile to center the entity on.

NOTE: Column numbers start at 1 and increase from left to right.

Examples

entityLayerInstance.centerNonResourceEntityOnTile(42, 10, 15)