SRL Archive - Reflection Help

walkback?


ZaSz

2008-10-08 23:37:32

For my walking, i am using
for i := 0 to High(Path) do
Begin
WalkToTile(Path[i], 1, 0);
flag;
end;

I know you have to change the 'for blah to blah do' to make my walking start from the end to front. So any help?

Method

2008-10-08 23:42:04

Try for i := High(Path) downto 0 do. That should go from highest to lowest and include every relevant point in Path also.

ZaSz

2008-10-08 23:47:07

Nice ty!!! right now its so walking back well.

TViYH

2008-10-08 23:48:32

Or you could use InvertTPA(); =]