IgeEntity

Method: bounds2d

Gets / sets the 2d geometry of the entity. The x and y values are relative to the center of the entity. This geometry is used when rendering textures for the entity and positioning in world space as well as UI positioning calculations. It holds no bearing on isometric positioning.
bounds2d (Number x, Number y)
  • Numberx The new x value in pixels.
  • Numbery The new y value in pixels.
Returns * "this" when arguments are passed to allow method chaining or the current value if no arguments are specified.

Set the dimensions of the entity (width and height)

entity.bounds2d(40, 40);
© 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