Statt der Abfrage in Schritt 5 geht auch alternativ, wenn es darum geht maximal ein Tile (ohne Diagonal) Abstand zu haben:

Code:
@> Control Variables: [1319:Hero X] += Variable [1320]
@> Conditional Branch: Variable [1319:Hero  X] = 1
    @> Control Switches: [1326:switch] = ON
    @>
   : Else
    @> Control Switches: [1326:switch] = OFF
    @>
: Branch End
siehe auch Manhattan-Metrik