Last night I was programming some super-elementary pathfinding into the game prototype I'm working on and I noticed enemies were getting stuck on corners when following the player. They don't yet have the brains to try moving a few more pixels forward so that they can round the corner and continue the pursuit.
Here's a demo video (152kb). The pink/red rectangle is the player. The bottom-left blue rectangle is the enemy ploddingly following him. (And the things that look like a trail of turds are player footsteps… In case I have a level set in dust or snow)
Googling for information on path-finding, I came across this nice webpage called The Pac-Man Dossier which explains the workings of Pac-Man in extreme but user-friendly detail. It didn't solve my problem but it's more interesting than my problem and you may enjoy having a look at it.
|Most recent blog posts from Wade Clarke...|
No one has responded to this post yet.