Path finding subject has been prepared by many of you. I still get messages from newcomers how to implement this? Well here is self explaining CAPX that will teach you all
1 Create new project and name it as you wish
2 Create sprite and call it Guard
3 Create sprite box say 8 x 8 box and name it guardpost
4 Give guardpost Instance variables call it StopNo
5 Give Instance variable to Guard Call it StopNo
Your screen might look like this
Now add this code below