L
Luxxum
Guest
Hey, I was trying to make a global array by using:
global.arrayname = [ [11,12,13], [21,22,23], [31,32,33] ]
and gamemaker doesn't seem to mind it, but when I try to call it via:
variable = global.arrayname[variable2[real_number]]
it isn't working. Could you tell me what I'm doing wrong?
the exact error message is:
-----------------------------------
FATAL ERROR in
action number 1
of Create Event
for object moving_block_vertical_basic:
trying to index a variable which is not an array
at gml_Object_moving_block_vertical_basic_Create_0 (line 18) - yspeed = global.vblock[vblockn[2]]
----------------------------------
Thanks
global.arrayname = [ [11,12,13], [21,22,23], [31,32,33] ]
and gamemaker doesn't seem to mind it, but when I try to call it via:
variable = global.arrayname[variable2[real_number]]
it isn't working. Could you tell me what I'm doing wrong?
the exact error message is:
-----------------------------------
FATAL ERROR in
action number 1
of Create Event
for object moving_block_vertical_basic:
trying to index a variable which is not an array
at gml_Object_moving_block_vertical_basic_Create_0 (line 18) - yspeed = global.vblock[vblockn[2]]
----------------------------------
Thanks