Blender Game Motion

Hey Blenderartists,

I’ve found a motion that works pretty well for me, here’s the link to a video on youtube: Click

The motion is built with servo motions connected to a python script.
You can control the test character with W,A,S,D, left shift to sprint and space to jump.
You can control the run speed and jump height in the script in line 21 and 22.

Here’s the blend: blender motion template.blend (236 KB)

Please credit me if you use this motion. :yes:

This looks promising!
Just tested it and it works like no simple motion i ever had did!
GREAT WORK!

i like this motion !!!
is perfect for our game


thanks! i figured out these setting for quite a while to get rid of simple motion >.<
finally i tried to connect servo motion with python

new image http://http://th07.deviantart.net/fs71/PRE/i/2010/260/a/e/blender_test_city_by_dennish2010-d2ywdo6.jpg

thankyou very much!

Hey, would you be interested in a script that makes adjusts the feet to the same height as the surface he is walking on? So it won’t look like he is walking in mid air?

It is quite easy to do. i will post a tutrorial soon, you’ll find it min my sig if you are interested…

When i run your blend i get NameError: global name ‘GameLogic’ is not defined and Python script error from controller ‘MouseLook.py#CONTR#1’
Only the jumping seems to work.
Please help if you can.

@MDMD He must be using Blender 2.49 - you appear to be using Blender 2.55. Scripts won’t work between those two versions - replace “import GameLogic” with “from bge import logic as GameLogic” as a quick fix.

It is pretty neat, the only thing that keeps bothering me is that he behaves like a car when he runs up a hill… Because he’s floating in space and doesn’t come back to the hill…