S
SwanBon
Guest
Hi everyone,
I am getting this error every time I click on an item (that the player is able to pick up).
control.item [ index , 8 ] refers to a sprite. When the game starts it is defined:
control.item [ index , 8 ] = null_spr
I assume I am doing something wrong to get this error?
___________________________________________
##########################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object item_obj:
trying to index a variable which is not an array
at gml_Object_item_obj_DrawEvent_1 (line 1) - draw_sprite(control.item[index,8],0,x,y)
##########################################################################################
Any help would be great
Thank you
I am getting this error every time I click on an item (that the player is able to pick up).
control.item [ index , 8 ] refers to a sprite. When the game starts it is defined:
control.item [ index , 8 ] = null_spr
I assume I am doing something wrong to get this error?
___________________________________________
##########################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object item_obj:
trying to index a variable which is not an array
at gml_Object_item_obj_DrawEvent_1 (line 1) - draw_sprite(control.item[index,8],0,x,y)
##########################################################################################
Any help would be great
Thank you