MMF2Path8C:\Documents and Settings\Family\Desktop\Pathfinding.mfa4(@0BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB,BBBBBBmQBBBBBBmBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB,BBBBBBBmQBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB,BBBBBBiBBBBBBmBBBBBBATNFAPMSASUMAGMI """)))UUUMMMBBB999|PP3f333f3333f3ffffff3f̙3ff333f333333333f33333333f33f3ff3f3f3f3333f33̙33333f333333f3333f3ffffff3f33ff3f3f3f3fff3ffffffffff3ffff̙fff3fffff3fff333f3f3ff3ff33f̙̙3̙ff̙̙̙3f̙3f333f3333f3ffffff3f̙3f3f3f333f3333f3ffffff3f̙3f3ffffffffff!___wwwB00 h hpppph`@qxaxaxExpp`xÀI,0Qqqiph0$À$(mq4U444Uep`$IŽqUUuq$pHiÀ0YYYY888 xXDZmu8YY8U444UuuYyyyya`eÀm88Uqq4u8Y4ahÀDZ840Q4uY4aP,UMMIzizzzz {,{M{U<}}<yx8ax0uUQ ,m``E)}}Y $#W 51uO ~% ,;@= /&{m?S 5#P +*S}D 1U4_ Mk"8X )Th{> ){~L3jخvQ) 8WeO1  $&''&"  xAxAxAx㐂pppX$Ү0QqMAxhHÀiUUuUax`〆4YY8u$hu8U488puUQӎ0Ӽ<<$`axMUm)s͞c  `[  q= P2pO-AhppqmEumx4QӮq-Create Map : ,-Create Map V!R$  $  P + f ~n&Debugz P!    ( T-Obstacle~ P!    $ T- Clear   D T6-  spaces  h0 |l%"ArialB N@   N@   H 20  6" 2 < 2$  < 2$  !\h |l%"Arial & h# |l%"Arial& :!U  . 1 - Scan^     h(|l%"Arial&- Scan0  2  2 . Scan"  ,1   | 2 . Scan 0   :!T   !Qh|l%"Arial|&- Scan0  2 ! : !Z  2$ " . Scan       . Scan     RemsThis sets the starting position to that of the selected unit (the one whose ID# = global value A). It also starts a fastloop to scan all squares within range.This sets the current destination square according to the loop index. It ignores all squares outside the maximum possible range, making it more efficient.:If the selected square is within range, it is highlighted.$This just de-highlights all squares.This places each unit in a random location, and gives it a random number of movement points. It gives each instance of the unit a unique id# so we can tell them apart, It also converts screen coordinates to grid coordinates, to save us having to keep doing it.EvObObstacleSprite Edit Box00zE!Pathfinding objectHTAPUnitSprite HighlightSprite"EvEdEvTsEvLsEvCs!DNE!#&'208 ACHK4 ?'<Ne@DHT