O
Omega
Guest
I keep getting this error and i have no idea why ? i think it could be old text not working with GM 2 :
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_checkpoint:
global variable name 'checkpointR' index (100018) not set before reading it.
at gml_Object_obj_checkpoint_Step_0 (line 11) - if (global.checkpointR == room)
############################################################################################
Code:
step
image_angle += 1;
if (place_meeting(x,y,obj_player))
{
global.checkpoint = id;
global.checkpointx = x;
global.checkpointy = y;
global.checkpointR = room;
}
if (global.checkpointR == room)
{
if (global.checkpoint == id) image_index = 1; else image_index = 0;
}
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_checkpoint:
global variable name 'checkpointR' index (100018) not set before reading it.
at gml_Object_obj_checkpoint_Step_0 (line 11) - if (global.checkpointR == room)
############################################################################################
Code:
step
image_angle += 1;
if (place_meeting(x,y,obj_player))
{
global.checkpoint = id;
global.checkpointx = x;
global.checkpointy = y;
global.checkpointR = room;
}
if (global.checkpointR == room)
{
if (global.checkpoint == id) image_index = 1; else image_index = 0;
}