# Dynamic maze with simple AI navigation

**URL:** <https://forum.kirupa.com/t/dynamic-maze-with-simple-ai-navigation/78577>\
**Category:** Uncategorized\
**Created:** [February 6, 2005, 12:49am UTC](https://forum.kirupa.com/t/dynamic-maze-with-simple-ai-navigation/78577 "2005-02-06T00:49:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![icio](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/icio/32/484_2.png) [@icio](https://forum.kirupa.com/u/icio)\
**Post date:** [February 6, 2005, 12:49am UTC](https://forum.kirupa.com/t/dynamic-maze-with-simple-ai-navigation/78577/1 "2005-02-06T00:49:58Z")

</div>

maze is dynamically generated from the text file,

- 1 for regular tile
- 2 for start tile
- 3 for finish tile

I used an OOP approach except i didn’t bother using classes, just general MovieClip prototypes.

The AI i used simply makes the character turn in the same direction all of the time. I put an extra couple of lines in the source that allow to change which direction the character turns in.

Hope you like it :thumb:  
Check it:
