Random City-People AI (nodes)

Hey, here is my method of people that would walk around in a village, they move about fallowing the walkways and what-not. turning corners and some go fast, some go slow. In camera view, use mouse to look around, press WSAD to move, and press SPACE to hide the nodes.

Thanks to sambassador, gomer, and anyone else I forgot about on gameblender irc that lent me a hand!

randTravel5.blend (551 KB)


Heres a version with pathfinding. The green bots are following a path, they use the AI_MAIN2.py module.


randTravel5-pathfinding.blend (587 KB)

Here’s an old .blend made for our project, Gargantua. small cubes (rotating one, and the one that jumps from box-to-box) are just for visualization, nothing more. They’re helping with debugging.

It navigates through the cubes, and eventually finds the player.

This system was made by Siegel, documentation was made by me. We’ll be editing the AI later in the future to be more intelligent, and to do other things other than just navigating :slight_smile: I know it’s not much, but I like something like this, rather than pathfinding AI (only because it’s overused :P)

[DOCUMENTATION](http://wiki.gameblender.org/index.php?title=Gargantua: Documentation/AI)


ai0008.blend (430 KB)

Thats very cool.
IA use to be very complex but thats a good starting point.

Very nice! Thanks. :slight_smile:

Awesome! Love it!

only problem is that some of the characters collide.

Excellent! Much better then I could ever do, however two things I would mention is add two more navigational tools for rotation to make moving around the “city” easier, and I noticed that some of your “people” seem to start jumping around, they start “hopping” to the destination, then once they hit the Node they return to normal sliding. Just some thoughts.

Thanks guys!!! this help me alot… how about RPG AI?

Your script does not work for 2.64 blender game engine.This is what i get in the console of the blender game engine.

KeyError: 'value = gameOb[key]: KX_GameObject, key "path" does not 
Python script error - object 'Pathfinder.002', controller 
Traceback (most recent call last):
  File "C:\Users\back 
clack\Documents\New folder (4)\randTravel5-pathfinding.ble
line 13, in main
KeyError: 'value = gameOb[key]: KX_GameObject, key "path" 
does not exist'
Blender Game Engine Finished
trying to save homefile at C:\Users\back clack\AppData\Roaming\Blender Foundatio
n\Blender\2.63\config\startup.blend ok