Hi, Im trying to make a Pacman game, to start with.
I need help with the Enemys (ghost). I want them to move (read) fastes way to my character (pacman) Or move random ways around the playfield.
Printable View
Hi, Im trying to make a Pacman game, to start with.
I need help with the Enemys (ghost). I want them to move (read) fastes way to my character (pacman) Or move random ways around the playfield.
Hello!
You must try using advanced pathfinding to do this.
A Pacman game seems quite easy at first, until you get to the AI. Each ghost has a unique personality (agressive, slightly random etcetera). As Grim has mentioned you could use advanced pathfinding to get the ghost from A to B, but as you are new to MMF2, that won't be easy.
My method would be to put an invisible active object at every junction and corner and when the ghost collides with it, decide whether to move left, right, up or down depending on the X and Y of the player.
Again, if you are new to MMF2, that might also be quite difficult. If you have any questions, feel free to post them here.
Well i have done my movement on my pacman custom with y and x depending on what way you want to move. I can upload my game, and if you have time you can do so a ghost move randomly around the field or just moving to my player.
http://www.speedyshare.com/794885791.html Here is my pacman :P
And btw grim i just tryed your halloween game, that was awesome :O <3
haha, thank you :):):)
Well i got so many question, i would like to have you on my msn or, iRC. :D
I haven't MSN or IRC :( , I use only polish communicators, for example "Gadu-Gadu" :P my email grim97@o2.pl
gah thats bad :( taking a conversion over forum is taking to long. :D
gah thats bad :( taking a conversion over forum is taking to long. :D