# Any Ideas How To Create a Pacman-like Random Movement?

**URL:** <https://forum.kirupa.com/t/any-ideas-how-to-create-a-pacman-like-random-movement/2749>\
**Category:** flash\
**Created:** [April 21, 2002, 2:00pm UTC](https://forum.kirupa.com/t/any-ideas-how-to-create-a-pacman-like-random-movement/2749 "2002-04-21T14:00:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2002, 2:00pm UTC](https://forum.kirupa.com/t/any-ideas-how-to-create-a-pacman-like-random-movement/2749/1 "2002-04-21T14:00:50Z")

</div>

hiya… i really need all d help i can get rite now coz i’m in d middle of my school projet…\r\rhere goes\>\>\r\ri’m creating a game in Flash 5… it involves a character (moved by player) avoiding an enemy in a maze like area… (think Pacman)…\r\rnow, i’ve done my charater and maze… but i’ve not started on d enemy… \r\ri’ve read some tutes on random movement but it doesn’t involve a maze like area…it juz cuts across d screen randomly… \r\ru see, my maze is as follows \>\> 0 0 0 0 0 0 0 0\r 1 0 1 0 1 0 1 0\r 0 0 0 0 0 0 0 0\r 0 1 0 1 0 1 0 1\r 0 0 0 0 0 0 0 0\r 1 0 1 0 1 0 1 0\r 0 0 0 0 0 0 0 0 ( 8 x 8 )\r\rnow, i want my enemy to move only among d first 3 rows, stopping n lookin around in random spots to look around…\r\rany ideas…??\r\rbtw, i’m kinda new n scrap at scriptin so i need all d guidance n help i an get, it’d be good if u cld explain it to me as well…\r\rthankx…\r\r

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2002, 3:51pm UTC](https://forum.kirupa.com/t/any-ideas-how-to-create-a-pacman-like-random-movement/2749/2 "2002-04-21T15:51:13Z")

</div>

You can get a complete Pacman at the flashkit downloads. Might help…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 22, 2002, 12:04am UTC](https://forum.kirupa.com/t/any-ideas-how-to-create-a-pacman-like-random-movement/2749/3 "2002-04-22T00:04:07Z")

</div>

hiya, i’ve looked thru at d examples n to tell d truth, i don’t know wat’s goin on…\r\ri don’t understand a single thing…\r\rcan u teach me n guide me step by step…?
