i=instance_place(x,y,argument3)
if distance_to_object(i)<5
{
with (i)
{
instance_destroy()
}
}so it works with one enemy but if two enemies land walk over it as it explodes only one enemy will destroy, anyone know why?
Posted 04 March 2012 - 05:43 PM
i=instance_place(x,y,argument3)
if distance_to_object(i)<5
{
with (i)
{
instance_destroy()
}
}Posted 04 March 2012 - 06:59 PM
with(argument3) {
if(distance_to_object(other) < 5) {
instance_destroy();
}
}
0 members, 0 guests, 0 anonymous users