Maze with walking enemies?

Hi guys

I’m really trying to think in a code to build a maze with walking enemies on it, based on a path, and when the user put on object “blocking” a path, then it changes his course… First, nahircan from the irc channel came up with an applyforce by detecting collisions with maze’s walls idea, but I don’t know if is the onky way to do so… I mean, the enemy must reach the opposite side of where he came from (let’s say, off the right side of the screen and reach left aide if the screen, passing trough the maze, and the user block his way out…)

I would really appreciate.if you guys can give me any idea… I’m nit asking if is there a way to do AI, but a way to make that possible! :smiley:

Thanks [import]uid: 58067 topic_id: 10063 reply_id: 310063[/import]

There was a blog post on Ansca about path finding a little while ago. I think it was linking to an article by Peach Pellen, but that might be my lack of coffee right now.

M [import]uid: 8271 topic_id: 10063 reply_id: 36747[/import]

This should get you on the right path ( bad pun intended ) - http://mobile.tutsplus.com/tutorials/corona/corona-sdk-game-development-path-finding/ [import]uid: 5833 topic_id: 10063 reply_id: 36767[/import]