obj = instance_create(x,y,object2); obj.wid = wid;I have this code in the step event of object2. Object2 moves.
Object2:
if wid == object1.wid
{
if distance_to_object(object1) > 200
{
instance_destroy();
}
}But it never destroys himself because my three instances haves a 100 pixel gap between them. I need to get the object index of the instance with the same wid.Thank you.
Edited by Gnss, 06 June 2007 - 06:47 PM.











