In my project a solid tilemap is randomly generated and right after that the obstacle map is regenerated.
Later on the "find path"-action is triggered on a enemy-sprite since i want them to move to the player as soon as possible.
In "path found" i start the movement as usual but the path which was found is always a straight line to the player ignoring all obstacles
BUT if i put a System.wait(5 sec) after the "regenerate obstacle map"-action it works correctly. so i guess the regeneration of the obstacle map is an asynchronous process. But in that case there should be an event like "on obstacle map regenerated" where i can hook in to start the pathfinding.
Or did i something wrong?