Hi Robert,
The pathfinding AI works great, which helps my project tremendously!
Still, I found it can generate errors in my specific case.
As I understand, it has to do with my code rather than with your tool, but I'd appreciate any leads.
The bug seems to be triggered when my Avatar collides with the detection sensor and the NPC is itself collided with a tile at the same time, but I'm not entirely sure.
Here's the error message it generates (also see attached as a screenshot):
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at AStar$/bestPath()[C:\Users\Demid Tishin\AppData\Roaming\Stencyl\stencylworks\engine-extensions/ai-tools/AITools.hx:1291]
at AITools$/findPath()[C:\Users\Demid Tishin\AppData\Roaming\Stencyl\stencylworks\engine-extensions/ai-tools/AITools.hx:196]
at MethodInfo-6771()[Source/scripts/Design_9_9_NPChackandhug.hx:776]
at com.stencyl.models::Actor/innerUpdate()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/models/Actor.hx:1530]
at com.stencyl::Engine/update()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2479]
at com.stencyl::Engine/postUpdate()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2618]
at com.stencyl::Engine/onUpdate()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2611]
I tried running the game in the debug mode, but it constantly requests Visual Studio, which I already have (up-to-date version) so I have no clue how to debug it.
Here's the game project file if you'd like to take a quick look:
https://www.dropbox.com/s/q1cs9x3oxwuw8wh/Attack%20Talk%20Sneak.stencyl?dl=0And here's a recorded video (the error message does not show on video since it's generated over the active Adobe Flash window)
https://www.dropbox.com/s/q1cs9x3oxwuw8wh/Attack%20Talk%20Sneak.stencyl?dl=0Thank you very much!