Path finding movement not working with NPCs
Created by: christopho
Bug report from Yruama, confirmed by Diarandor: See http://forum.solarus-games.org/index.php/topic,289.0.html
Hello,
I want to use this : http://www.solarus-games.org/doc/latest/lua_api_path_finding_movement.html so i do this :
myInterrupt.on_activated = function()
game:start_dialog('myDialog')
local m = sol.movement.create('path_finding')
m:set_target(map:get_entity("hero"))
m:set_speed(64)
m:start(myNPC)
end
but myNPC have a random movement.
What i fail ?