I imagine I'd use something like:
var nnn;
nnn = instance_nearest(x,y,object1);
if (nnn.vspeed > 0)
{
// do stuff
}
else // it is travelling in the wrong direction, so find the next closest instance that is travelling correctly
I just don't know how to do it.
I have good understanding of GML and computer science.
I am using GM8 Pro.
Please help!
Many thanks.
Edited by StudioGilliam, 09 June 2012 - 11:35 PM.











