Method: heightByTile

Set the object's height to the number of tile height's specified.
heightByTile (Number val, Boolean lockAspect)
  • Numberval Number of tiles.
  • BooleanlockAspect If true, sets the width according to the texture aspect ratio and the new height.
Returns * The object this method was called from to allow method chaining.

Set the height of the entity based on the tile height of the map the entity is mounted to

// Set the entity height to the size of 1 tile with
// lock aspect enabled which will automatically size
// the width as well so as to maintain the aspect
// ratio of the entity
entity.heightByTile(1, true);
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point