W
Whiskey01
Guest
Hi guys i have a problem on game maker with a game that im working on.... and i keep getting an error tell me that i have not set a value before the program has read it , but i have.... maybe i did it wrong please help and reply ASAP
error:
global variable <unknown built-in variable>(-1610512733, -2147483648) not set before reading it.
at gml_Object_obj_Upgrade_5_DrawEvent_1 (line 1) - draw_text_transformed(view_xview[0]+32,view_yview[0]+544,"Cost: $" + (global.UpgradeCost2x) ,2.5,2.5,image_angle )
this is a draw event(the error is meant to be here?):
draw_text_transformed(view_xview[0]+32,view_yview[0]+544,"Cost: $" + (global.UpgradeCost2x) ,2.5,2.5,image_angle )
the place where i define the variable is in a game start event and this is what the game start event does:
global.UpgradeCost2x = 3000
error:
global variable <unknown built-in variable>(-1610512733, -2147483648) not set before reading it.
at gml_Object_obj_Upgrade_5_DrawEvent_1 (line 1) - draw_text_transformed(view_xview[0]+32,view_yview[0]+544,"Cost: $" + (global.UpgradeCost2x) ,2.5,2.5,image_angle )
this is a draw event(the error is meant to be here?):
draw_text_transformed(view_xview[0]+32,view_yview[0]+544,"Cost: $" + (global.UpgradeCost2x) ,2.5,2.5,image_angle )
the place where i define the variable is in a game start event and this is what the game start event does:
global.UpgradeCost2x = 3000
Last edited by a moderator: