Thread: lol
View Single Post
  #54  
Old 10-22-2006, 04:24 AM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
Quote:
Originally Posted by Stefan View Post
A simple way to avoid complex path finding algorithms is to remember where the player walked. The monster then only needs to go to the last known position and follow the path of the player.
Right, same method used for bomy pets when they follow you.

It's at least far better than having them appear to be lagging badly and teleporting around. I refused to even bother with Zodiac after I played for a few minutes trying to fight monsters and they were just teleporting in front of me and attacking and I'd swing and miss them.

Another thing you could do is just have it pathfind for short distances... Like if it runs into a wall and the player is on the opposite side of the wall, the enemy would search for an opening along the wall and then move that way.

It's not perfect but again, it's far better than having them teleport around.
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote