Get the Code :
Best Unity 2D Book :
In this part of my Video Games Tutorial I show how to make the hardest part in Pac-Man, which is the Ghost AI Algorithm. We’ll Create the Ghost AI so Ghosts Circle Around the Maze on their own, They’ll React to Collisions with Pivot Points and They’ll Always Remain Perfectly Centered. We’ll also have the Ghosts Move Erratically, Use an Array to Store Game Objects, Make Ms. Pac-Man use Portals and a whole bunch more.
Thank you to Patreon supporters like the following for helping me make this video