PDA

View Full Version : How about Find Distance Map Walk?



Dustin
09-05-2006, 04:05 AM
Hey I dont have SCAR or SRL on this comp and I dont know if theres already a function like this but how about something like this? :


function finddistancemapwalk(x , y , x2, y2, d , l : integer) : boolean ;
begin
findcolorspiral(flag etc)
if l=0 then
begin
if (x-648)+(y-83) is < d then result=true
else result=false
if l=1 then
begin
if (x-648)+(y-83) is > d then result=true
else result=false
end;
end;
end;