how to move an object via python???

i am programming on a small fun mini- game where u have to catch bananas with your telescope arm

i tried to wirte a script, where an object moves, while you are pushing the space button
and of course---- i failed:
it actually doesn`t do anything
here is it:

import GameLogic

scene = GameLogic.getCurrentScene()
cont = GameLogic.getCurrentController()

Hand = scene.getObjectList()[“OBHand”]
move_H = cont.getActuator(“move”)

Hand_start_pos = (-4.123,-2.67,0)
Arm = scene.getObjectList()[“OBArm”]

Hand_Position = Hand.getPosition()
Arm_Position = Arm.getPosition() #Get Position

Leer = cont.getSensor(“Leer”)

if (Leer == True):



maybe it might be better to post the actual game

Hand_start_pos = (-4.123,-2.67,0)

should be

Hand_start_pos = [-4.123,-2.67,0]

okay… but the result is also the same

Let’s see, another thing i see is


should be


You’re not activating the actuator. You’re just changing what it does.

To activate it, use GameLogic.addActiveActuator(actuator, 1).

In your script, the line would be
GameLogic.addActiveActuator(move_H, 1)