#### xDGameStudios

##### Member

Code:

```
enum POINT {
X = 0,
Y,
SIZE
}
p1 = [2, 4];
p2 = [3, 8];
//array of points
arr = [p1, p2];
//or continuous array
var i = 0;
arr[i + POINT.X] = 2;
arr[i + POINT.Y] = 4;
i+=POINT.SIZE;
arr[i + POINT.X] = 3;
arr[i + POINT.Y] = 8;
// if you want to access with method 1
var temp = arr[0];
var x = temp[POINT.X];
//with method 2 (where index is the point number)
var x = arr[ index * POINT.SIZE + POINT.X ];
//even with for loops
for (var i = 0; i < array_length_1d(arr); i += POINT.SIZE)
{
arr[@ i + POINT.X] = 10;
var a = arr[i + POINT.Y];
}
```