DeSnob
2010-06-10 18:48:08
This isn't exactly to know about them , but I need help with reversing a path so that i won't need to make 2 paths. I tried
But how would i make that work? And how would i make an actual reversePath, where it doesn't walk the path but reverses it?
function reversePath(Tiles:TTileArray):boolean;
var
i: integer;
Path: TPointArray;
begin
Path := Tiles;
for i := High(Path) to Low(Path) do
Begin
WalkToTile(Path[i],2,0+random(6));
end;
Wait(500+Random(300));
end;But how would i make that work? And how would i make an actual reversePath, where it doesn't walk the path but reverses it?