sparklemotion
Member
Hi guys
Well, I have an instance "A" that looks at the nearest instance of a parent object "B". The parent object has three children "1", "2", "3". I need to have the instance "A" to be
able to deduct whether the parent object "B" is in the form of child "1", "2" or "3".
In my step event for instance "A" I have:
...any advice on how to tell which child the nearest parent "B" is, is very welcome!
Thanks!
Well, I have an instance "A" that looks at the nearest instance of a parent object "B". The parent object has three children "1", "2", "3". I need to have the instance "A" to be
able to deduct whether the parent object "B" is in the form of child "1", "2" or "3".
In my step event for instance "A" I have:
GML:
closest_enemy = instance_nearest(x, y, obj_B_parent);
Thanks!