A* Pathfinding Project

Setting Object to move using AI


Hi, I need to make my Pacman move using the AI instead of using the arrow keys. What tools from the A* Pathfinding do i need to make this working?. Probably the easiest way i taught of is that the Pacman leaves a certain amount of distance from the enemies so that when the enemies come nearby he moves. Thanks in advance



You should be able to configure him exactly like your ghosts. You can probably skip the AIDestinationSetter component and the Patrol component, but instead set ai.destination to wherever you want the pacman to move.