Moving to a free space in 1 tile distance
Posted: 28.07.2016 15:40
Hey guys,
It my character is at 0,0
and facing 3 (SE)
how i can make sure he walks into a free (non-blocked) tile in green area (1 tile max range).
what ive tried is:
that works fine if the tile in front of character isnt blocked (in example, 1.0).
thanks
It my character is at 0,0
what ive tried is:
Code: Select all
if myBools then
begin
StepQ (PredictedDirection, True);
myBools := False;
end;
thanks