Description

Obtain the properties of a cell according to positions

Usage

Parameters

  • x {Integer}

    Position X

  • y {Integer}

    Position Y

Returns

Object

Example

In ready method

var grid = Class.New("Grid", [2, 2]);
grid.setPropertyCell(
    [
        [0, 0], 
        [1, 0]
    ]
);
grid.setCellSize(32, 32);
grid.getPropertyByPos(53, 24); // return 1

Discussion