dl.dropbox.com/u/41931267/Pathfinder.capx
The pathfinding seems to have severe problems... Not sure what's going on here. It seems to go through walls at a whimsy.
Example Uses the MoveTo behavior.
Thanks for this sqiddster.
This is due to bounding box which I will have to look into further. The way it checks objects is through the bounding box which doesn't seem to work when rotating objects and re-sizing to size not a multiple of the cell size e.g. 32 pixels.
For each cell on the grid the center coordinate x, y is checked to see if it lies within the bounding box of the object then sets blocking as necessary. For now I will create an action event to set cells by x and y position then you can block the map using construct events e.g. by testing overlap with a red blip or whatever. If you want to use objects as blockers don't rotate and use objects that are sized in multiples of whatever the grid size is e.g. 32 would equate to blockers sized 32, 64, 128 ... I'll have a look into a better method for blocking using objects. Sorry for the problems and I hope what I've said above makes sense.