I've upgraded to DDTM's for walking but on my first ever one i'm getting this annoying error. It moves the mouse to the edge of the MM somewhere, doesn't actually click on the DDTM even tho it's perfectly visible
DDTM:
SCAR Code:
procedure RoadDDTM;
var
MainPoint: TDTMPointDef;
SubPoints: Array [0..3] of TDTMPointDef;
begin
MainPoint.x := 417;
MainPoint.y := 100;
MainPoint.AreaSize := 0;
MainPoint.AreaShape := 1;
MainPoint.Color := FindFallyRoadColor;
MainPoint.Tolerance := 0;
SubPoints[0].x := 391;
SubPoints[0].y := 104;
SubPoints[0].AreaSize := 0;
SubPoints[0].AreaShape := 1;
SubPoints[0].Color := FindFallyRoadColor;
SubPoints[0].Tolerance := 0;
SubPoints[1].x := 438;
SubPoints[1].y := 96;
SubPoints[1].AreaSize := 0;
SubPoints[1].AreaShape := 1;
SubPoints[1].Color := FindFallyRoadColor;
SubPoints[1].Tolerance := 0;
SubPoints[2].x := 421;
SubPoints[2].y := 121;
SubPoints[2].AreaSize := 0;
SubPoints[2].AreaShape := 1;
SubPoints[2].Color := FindFallyRoadColor;
SubPoints[2].Tolerance := 0;
SubPoints[3].x := 368;
SubPoints[3].y := 100;
SubPoints[3].AreaSize := 0;
SubPoints[3].AreaShape := 1;
SubPoints[3].Color := 9481910;
SubPoints[3].Tolerance := 30;
CrossRoad.MainPoint := dtmMainPoint;
CrossRoad.SubPoints := dtmSubPoints;
blah := AddDTM(CrossRoad);
end;
vars:
SCAR Code:
CrossRoad: TDTM;
WhichAngle:Extended;
Blah:Integer;
FindDTM procedure
SCAR Code:
if FindDtmRotated(blah, xx, xy, MMX1, MMY1, MMX2, MMY2, -PI*2, PI*2, 0.2,
WhichAngle)then
hope that's making sense, soz for nubular question
-LF