PixelMochii
Member
Hiya, I'm attempting to store a bunch of hex colours into a 2d array so that I can access them later to randomise colour schemes, but using the
the 2D array I want to create:
Error:
$
symbol in my array returns an invalid syntax error. Does anyone know how to store colours in this form without gamemaker hating it?the 2D array I want to create:
Code:
ranCol =
[
[$FFFFFF, $FF99FF, $7F4810, $4C0002, $2D130D, $000000],
[$E2DDFD, $95A0FA, $CBD99F, $798B02, $994C2D, $991E38],
[$FFFFFF, $FF99FF, $7F4810, $4C0002, $2D130D, $000000],
[$E2DDFD, $95A0FA, $CBD99F, $798B02, $994C2D, $991E38],
[$FFFFFF, $FF99FF, $7F4810, $4C0002, $2D130D, $000000],
];
Code:
Object: oCellAuto Event: Create at line 7 : unexpected symbol "[$" in expression