Seeking and Fleeing Algorithms


Chicken with its head cut off, or laser guided missile? Your choice. The seeking and fleeing algorithms used in your VB6 game will make a huge difference in the gameplay, don't doubt it. Your enemies can have all kinds of cool moves and abilities, but if they can't intelligently locate the player (for seeking AND for fleeing purposes), they won't inspire fear or impart the neccessary sense of realism.

This Visual Basic 6 source code sample shows you how to use different AI algorithms to have your enemies either seek after the main player or flee away from him. If you would like a step by step guide check out our: Seeking and Fleeing Algorithms in VB6 Tutorial.


Download the Visual Basic source code sample  

If you enjoyed this post, subscribe for updates (it's free)