D
Daniel O'Brien
Guest
For some reason instance_position(xLocation,yLocation,all) is returning 100099 instead of -4 (or noone) like it should. It appears that the first time the code is run it returns -4. However, the second time it returns 100099 which is not the ID of any object and causes issues further down the line.
My full code is
This code is within a 'step' event
My full code is
Code:
temporary_id = instance_position(x,y+128,all);
show_debug_message(instance_position(x,y+128,all));
if(temporary_id == noone) {
yGoal=y;
xGoal=x+128;
moving = true;
}