IgePathComponent

Method: dynamic

Gets / sets the dynamic mode enabled flag. If dynamic mode is enabled then at the end of every path point (reaching a tile along the path) the path finder will evaluate the path by looking ahead and seeing if the path has changed (the tiles along the path have now been marked as cannot path on). If any tile along the path up to the look-ahead value has been blocked, the path will auto re-calculate to avoid the new block.

For dynamic mode to work you need to supply a path-finder instance by calling .finder(), a tile checker method by calling .tileChecker() and the number of look-ahead steps by calling .lookAheadSteps(). See the doc for those methods for usage and required arguments.
dynamic (Boolean enable)
  • Booleanenable If set to true, enables dynamic mode.
Returns *
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point