Page 1 of 1

calculate distance between two actors...

PostPosted: Mon Jan 29, 2007 9:15 pm
by rconnor
Hello folks!

I'm having trouble figuring this out. I'd like to show the distance between two actors in a third text actor. As the actor A moves toward or away from actor B the text actor would show the running value.

Your help is much appreciated.

Thanks!
R





THANKS AGAIN!

PostPosted: Mon Jan 29, 2007 11:14 pm
by makslane
Try this:

Code: Select all
textNumber = distance(A.x, A.y, B.x, B.y);