PDA

View Full Version : Any Ideas How To Create a Pacman-like Random Movement?



V Kyrie
April 21st, 2002, 10:00 AM
hiya........ i really need all d help i can get rite now coz i'm in d middle of my school projet....

here goes>>

i'm creating a game in Flash 5.... it involves a character (moved by player) avoiding an enemy in a maze like area...... (think Pacman)....

now, i've done my charater and maze..... but i've not started on d enemy....

i've read some tutes on random movement but it doesn't involve a maze like area....it juz cuts across d screen randomly...

u see, my maze is as follows >> 0 0 0 0 0 0 0 0
1 0 1 0 1 0 1 0
0 0 0 0 0 0 0 0
0 1 0 1 0 1 0 1
0 0 0 0 0 0 0 0
1 0 1 0 1 0 1 0
0 0 0 0 0 0 0 0 ( 8 x 8 )

now, i want my enemy to move only among d first 3 rows, stopping n lookin around in random spots to look around....

any ideas...??

btw, 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....

thankx....

eyezberg
April 21st, 2002, 11:51 AM
You can get a complete Pacman at the flashkit downloads. Might help..

V Kyrie
April 21st, 2002, 08:04 PM
hiya, i've looked thru at d examples n to tell d truth, i don't know wat's goin on....

i don't understand a single thing...

can u teach me n guide me step by step..?