itSchRis917
2008-05-09 00:12:48
Ok, well i just recently got back into scripting and i dont remember a whole lot, so i was wondering if someone would be willing to help me out..
Currently i have a procedure that finds a color and stores that color into a TPointArray and splits it up using TPAtoATPAEx but now i want to know how to take all of those points and compare the distances from the center of the main screen. When it finds the one with the shortest distance i want it to check it to see if it is the right object and if it is not, to proceed onto the next point.. I know how to do everything except comparing the distance of the points… Help is greatly appreciated. :)
Currently i have a procedure that finds a color and stores that color into a TPointArray and splits it up using TPAtoATPAEx but now i want to know how to take all of those points and compare the distances from the center of the main screen. When it finds the one with the shortest distance i want it to check it to see if it is the right object and if it is not, to proceed onto the next point.. I know how to do everything except comparing the distance of the points… Help is greatly appreciated. :)