I’m currently working on a pacman war zone type game. I can’t find the script for the ghosts anywhere though. I’m not good at making my own scripts, and all I need is the movement-the semi-random character following that they do. They don’t need to kill him or anything. I just need the movement. Any help at all is appreciated. Thanks
Well, if any help is appreciated, I did a while ago a PacMan game using A* for the Ghosts, in C#/XNA.
Besides the traditional A*, the game would check which Ghost could catch PacMan the fastest, save such optimal path, and then it would force the other ghosts to close-down on PacMan through a different paths. When all possible paths to PacMan where covered by the respective optimal chasing Ghosts, all the other Ghosts would simply wonder around randomly. Pretty straight forward.
If you wan something like a “semi-random” following, you could just dumb-up the A*, maybe only recalculate the optimal paths after a considerable number of frames.
Hope it helps, gook luck!