mastah
2012-01-30 10:44:07
Currently I have this code:
The DTM should work because I checked in the editor. The problem is that I have the axe in my inventory but I still don't see the 'Congratz!' in my debug box :(.
I thought the FindDTM should return true because the axe is in the box from 1,1 until 800,800 . But it doesnt do that why is that?
Regards!
SOLVED: I had to put tolerance to 15 on all points not just one point, stupid me.
program New;
var AxeDTM,x,y:integer;
begin
AxeDTM := DTMFromString('mWAAAA345icY2FgYOBggAABH8ZHYk4GBOAF4rrKSoaXbYpgbG3NwZDCgaoY0TAIAAD+PgVg');
if FindDTM(AxeDTM,x, y,1, 1, 800, 800) then
writeln('Congratz! You have just found your first DTM!');
FreeDTM(AxeDTM);
end. The DTM should work because I checked in the editor. The problem is that I have the axe in my inventory but I still don't see the 'Congratz!' in my debug box :(.
I thought the FindDTM should return true because the axe is in the box from 1,1 until 800,800 . But it doesnt do that why is that?
Regards!
SOLVED: I had to put tolerance to 15 on all points not just one point, stupid me.