B
Bigheadface
Guest
Hi, I just downloaded GMS2 free version today. Checking it out to decide which engine to buy for my son's birthday. I'm very new to coding so please bear with me.
I'm in part 5 of the yoyo games youtube tutorial. I've completed all of the tasks and set the score to draw at the top center of the screen. I've watched the video twice and I'm fairly sure (though not certain) that I've typed all of the code he's included exactly as he shows on his screen.
Unfortunately when I try to test the game, I get this fatal error:
Text is:
___________________________________________
###########################################
FATAL ERROR in
action number 1
of Draw Event
for object obj_score:
Variable obj_score.cy(100006, -2147483648) not set before reading it.
at gml_Object_obj_score_Draw_0 (line 5) - draw_text (cx+cw/2,cy+25,string(thescore));
###########################################
and code is:
I don't know what I've done wrong. Can anyone help me figure out why I'm getting this fatal error?
I'm in part 5 of the yoyo games youtube tutorial. I've completed all of the tasks and set the score to draw at the top center of the screen. I've watched the video twice and I'm fairly sure (though not certain) that I've typed all of the code he's included exactly as he shows on his screen.
Unfortunately when I try to test the game, I get this fatal error:
Text is:
___________________________________________
###########################################
FATAL ERROR in
action number 1
of Draw Event
for object obj_score:
Variable obj_score.cy(100006, -2147483648) not set before reading it.
at gml_Object_obj_score_Draw_0 (line 5) - draw_text (cx+cw/2,cy+25,string(thescore));
###########################################
and code is:
I don't know what I've done wrong. Can anyone help me figure out why I'm getting this fatal error?