PathGridDiagonals
Allows diagonal steps: 0 = no, 1 = not past corners, 2 = yes.
PathGridDiagonals ( grid,mode )
Parameters
- grid
- the grid's handle.
- mode
- 0 for only up, down, left and right (the default); 1 to allow diagonal steps, except past the corner of a wall, so characters don't clip corners; 2 to allow every diagonal step, even squeezing between two walls that touch at a corner.
Description
Chooses whether paths on a grid can step diagonally. A diagonal step counts as about 1.41 cells, the true distance, so paths don't zigzag needlessly.
