Method: cell

Gets / sets the current texture cell used when rendering the game object's texture. If the texture is not cell-based, this value is ignored.
cell (Number val)
  • Numberval The cell index.
Returns * "this" when arguments are passed to allow method chaining or the current value if no arguments are specified.

Set the entity texture as a 4x4 cell sheet and then set the cell to use

var texture = new IgeCellSheet('path/to/some/cellSheet.png', 4, 4);
© 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