
-----------------------------------
Chaos_Theory
Thu Apr 21, 2005 5:42 pm

finding the distance
-----------------------------------
how do you find the distance between to object that randomly appear somewhere on the screen?

-----------------------------------
Tony
Thu Apr 21, 2005 5:45 pm


-----------------------------------

Math.Distance(x1,y1,x2,y2)

perhaps?

-----------------------------------
Chaos_Theory
Thu Apr 21, 2005 5:47 pm


-----------------------------------

Math.Distance(x1,y1,x2,y2)

perhaps?

I tired that already.. and it says that distance is not a part of math

-----------------------------------
36002
Thu Apr 21, 2005 6:37 pm


-----------------------------------
You might have an older version of Turing. Try this:

d := ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** .5 %this gets the distance between two points

simple math  :D

-----------------------------------
Chaos_Theory
Thu Apr 21, 2005 8:48 pm


-----------------------------------
You might have an older version of Turing. Try this:

d := ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** .5 %this gets the distance between two points

simple math  :D

thnx... now my program is pretty much complete...just a lil but of minor tweakig
