J
jana
Guest
I have a menu with a play button object. The left mouse event has the following code:
When I click, I get this error:
I do not get this error if I place rm_Level1 at the top of the objects list and run it first.
So, what could be the reason that the global variables are not seen if I run rm_Level1 from the menu page?
Code:
room_goto(rm_Level1);
obj_counter is an object physically placed in the room.___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of <Unknown Event>
for object obj_counter:
global variable <unknown built-in variable>(-1610512719, -2147483648) not set before reading it.
at gml_Room_rm_Level1_Create (line 9) - global.step_counter_lo = global.steps_until_lo_release;
############################################################################################
I do not get this error if I place rm_Level1 at the top of the objects list and run it first.
So, what could be the reason that the global variables are not seen if I run rm_Level1 from the menu page?