For class, i have to make a pacman game. I have created everything and made it work, except the ghosts. How do you make the ghosts follow the pacman and when they hit a wall, they stop and go on the correct path?
Please help, the teacher even doesn't know how to do it
.
Offline
That is getting a bit more complex, especially if you are trying to make an accurate AI.
Try checking out the code in this project.
http://scratch.mit.edu/projects/bigB/15121
Offline