Page 1 of 1

Moving to a free space in 1 tile distance

Posted: 28.07.2016 15:40
by nyce
Hey guys,

It my character is at 0,0
Image
and facing 3 (SE)
Image
how i can make sure he walks into a free (non-blocked) tile in green area (1 tile max range).

what ive tried is:

Code: Select all

if myBools then
    begin
      StepQ (PredictedDirection, True);
      myBools := False;
    end;
that works fine if the tile in front of character isnt blocked (in example, 1.0).

thanks

Re: Moving to a free space in 1 tile distance

Posted: 28.07.2016 21:08
by Vizit0r