Hello everyone,
i create my first game Pacman 3d,my qustion is how can i create a movement for the ghost?
how to scripting the following ghost after pacman player?
i be happy for help.
thanks everyone. ![]()
Hello everyone,
i create my first game Pacman 3d,my qustion is how can i create a movement for the ghost?
how to scripting the following ghost after pacman player?
i be happy for help.
thanks everyone. ![]()
It’s a basic path finding problem. I typically use something like A*.
For basic navigation, you can use Unity’s built in NavMesh and Agent: https://docs.unity3d.com/Manual/Navigation.html
For specifics about how the ghosts work in Pac-Man, there’s plenty of articles about them on the internet:
http://gameinternals.com/post/2072558330/understanding-pac-man-ghost-behavior