D
Dracodino300
Guest
I am currently getting errors stating that "target.type not set before reading" inside an is_undefined statement, and instance stored under target should not have even been read.
The relevant code used is this:
with
Where the error occurs, the instance that is returned by check_hit_instance has no collision mask and no type variable, so as far as I can see it should never have been picked up by instance_place and also should just return false for is_undefined.
EDIT: problem with is_undefined solved, still have instance_place error
The relevant code used is this:
Code:
target = check_hit_instance(x,y);
if(target != noone && !is_undefined(target.type)){
...
Code:
///check_hit_instance(x,y);
var x1 = argument0;
var y1 = argument1;
if(!place_empty(x1,y1)){
return instance_place(x1,y1,all);
}
else return noone;
EDIT: problem with is_undefined solved, still have instance_place error
Last edited by a moderator: