Why wont my code work?

I want to get a character to move about in the 3d world using python to manage the logic bricks.

If I have this logic brick setup:

And I have this code:

I get no error messages but my chracter wont move. If I setup seperate movement controllers for each key the angular and linear velocity works just the way I would like it to except that I want to manage it in code.

There is probably a better way of going about this?

you need to send a pulse to an actuator for it to do anything

you can send both true and false pulses…


false pulses in motion actuators stop the motion sometimes [linv, angv… ]

Another problem, you do not need “;” this is not pascal :).
Remove all your “;”.

See Ya.

Maybe this can interest You.