mouse over and mouse left button

Hi, I need to move an object with a left button click, it works but when I try to move another object in the scene with the left button click, both objects move. I need only to move the object I’m clicking so I’m trying to use the Mouse Over but it doesn’t work, I have two logic Mouse bricks one Left Button and the other Mouse Over linked to an AND controller which is linked to the Motion Actuator, why doesn’t this work?? when I click the object now it does not move.

not sure iv’e had some trouble with that aswell

But does the Mouse Over work??? or is it me who doesn’t know how to use it???

The mouse over sensor fires a ray from the camera in the direction of the cursor. The target object must have collision faces enabled to be detected. Also make sure nothing else is blocking the path between camera and object, overlay scenes included.

I’m trying to follow this link:
https://blenderartists.org/forum/viewtopic.php?t=31590&highlight=mouse

and now I have 2 Mouse sensors (sen is a Left Button sensor and sen1 is a Mouse Over sensor) linked to this script:

import GameLogic
cont = GameLogic.getCurrentController()
own = cont.getOwner
sen = cont.GetSensor (“sen”)
sen1 = cont.GetSensor(“sen1”)
if sen.isPositive() and sen1.isPositive():
own.setPosition([5,0,0])

But it doesn’t work :frowning:

Use this script attached to your cube to debug:

g = GameLogic
c = g.getCurrentController()
o = c.getOwner()

mOver = c.getSensor("Mouse Over")

if mOver.isPositive():

    print "TEST"

If TEST appears in the console, it’s not your mouse over sensor that’s the problem.

Also note mouse over does not work when the camera is orthogonal!