Sorry to bump on an old tread but I can't seem to get distance to accept anything.
So if I have a var and want to set its value to the distance between to sprites I was thinking:
Every Tick - Set Var = Distance(sprite1.x,sprite2.x) But it doesn't except that syntax or 4 values (sprite1.x,sprite1.y,sprite2.x,sprite2.y)
whats the correct way to write this out? Or has it changed as this thread is very old?