I'm seeing the following behavior, which seems odd, and wanted to confirm that others see this too.
I'm trying to setup a 2d X by Y grid dynamically, and then use pathfinding to move through it. In order to set up the grid, I'm reading JSON from a web server, loading it into a 2D array, and then using that array to layout a series of square sprites ('Wall'), which have a 'solid' behavior, as the walls of my maze. I've gotten the layout working fine, but the problem comes in when I then try to have a different sprite use pathfinding to find it's way through my layout.
5 seconds after my layout loads (which should be well after the layout is done), I try to use pathfinding on another sprite ('BadGuy') to figure out a path to yet another sprite ('Target'). The Pathfinding Complete event fires, but BadGuy.MoveAlongPath simply results in the BadGuy walking through walls, and heading straight to my target.
If instead, I simply duplicate my Wall sprite a bunch of times, and hand layout my maze, pathfinding works as expected, and BadGuy weaves down my hallways, and not through the walls.
This seems to be related to Pathfinding not respecting sprites created dynamically, even if they have the Solid behavior.
Is this expected? If so, is there a way around this?
Thanks!