P
PabloMagno
Guest
My issue is really simple, i'm trying to do this in a "Create" event:
So, I'm expecting that if I do:
I'll get "SAMPLE" loaded in test (If an instance "object" is created).
But I get:
Thanks in advance,
Pablo.
Code:
coords[1,1].property = "SAMPLE";
Code:
test = object.coords[1,1].property;
But I get:
Well, so "trying to index a variable which is not an array"... Of course the problem is the mix of the "dot notation" after the "[ ]" notation. But why? Any workaround?___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Create Event
for object obj_standard_board:
trying to index a variable which is not an array
at gml_Object_obj_standard_board_Create_0 (line 11) - coords[1,1].property = "SAMPLE";
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_obj_standard_board_Create_0 (line 11)
called from - gml_Script_create_board (line 6) - created_board = instance_create_layer(0, 0, "Board", board_type);
called from - gml_Room_match_Create (line 9) - board = create_board (obj_standard_board)
Thanks in advance,
Pablo.