Ok, i’ll admit it, i a ma noob with python and Blender, in fact I started today, I am however fluent with other languages (Batch VB C++ HTML JS etc.) and I would also like to begin leaning python. I decided to use blender to help with that.
I’ve been trying for about an hour now to get this script working
cont = GameLogic.getCurrentController()
fwd = cont.sensors['forward']
bck = cont.sensors['backward']
move = cont.actuators['move']
speed = [0, 0, 0]
if fwd.positive:
speed[1] = 0.2
elif bck.positive:
speed[1] = -0.2
move.useLocalDLoc = True
move.DLoc = speed
I just can’t seem to get it working.
I know it will be a simple syntax error, but where?
Thanks for any help guys
(Woops, i just relized that this is in the wrong section, sorry.)