In the last few tutorials our bot was confined to moving a 2 dimensional map,
in this tutorial we will allow him to move about the map in 3d world.
Here is the blend file:
Fist off, I made all the areas of the map where the bot can walk have a property called "floor",.
I colored all the floors green so they are easy to see.

I have also added a new material named Floor with the vertex colors
button checked, so we can see the vertex colors ingame,
and also we can
add special things like friction if we need later on.
The wall meshes now all have a property called "wall" as well, so
later we can give the bot and player conditions when he hits a wall..
Now we must tweak our bot to obey the laws of gravity.
all we must do is add a collision sensor for the floor, to the bot's speed like this:

The way we have our property sensor, attached to the collision
sensor with the "And" controlers will only allow the bot to move forward
if he is touching the floor.
I am going to add 2 more speeds now, and attach them to the collision sensor as well.

I add a way to reset the speeds too, if ever if the property "speed" ever = 4 so we can cycle them easy.
Now I add a way to test the speed, by adding a keyboard sensor:

I also want the bot to change direction .
I make a new Intager property for the bot called "forward"
And here are the blocks I have added :
The last row of blocks are so that the bot resets his node counter if he is going in reverse order and hits pathnode 1.