R
RATTLEGOAT
Guest
trying to make an object disappear on the click of another object. I'm getting this message when I click ANYTHING:
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Mouse Event for Glob Left Pressed
for object object15:
Pop :: Execution Error - Variable references invalid object (-4).<unknown variable>
at gml_Object_object15_Mouse_53 (line 3) - objectClicked.object18 = image_alpha = 0;
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_object15_Mouse_53 (line 3)
The "unknown variable" is object 18 and it is alive and well. here is my code:
var objectClicked = instance_position(mouse_x,mouse_y,object18 ); //this will either store noone or the id of the instance the mouse is on
objectClicked.object18 = image_alpha = 0;
HALP
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Mouse Event for Glob Left Pressed
for object object15:
Pop :: Execution Error - Variable references invalid object (-4).<unknown variable>
at gml_Object_object15_Mouse_53 (line 3) - objectClicked.object18 = image_alpha = 0;
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_object15_Mouse_53 (line 3)
The "unknown variable" is object 18 and it is alive and well. here is my code:
var objectClicked = instance_position(mouse_x,mouse_y,object18 ); //this will either store noone or the id of the instance the mouse is on
objectClicked.object18 = image_alpha = 0;
HALP