actor doesnt follow cursor exactly

I have setup a simple actor that drags when mouse is on the actor and button is pressed and then a constrain attribute from self.postion.x to game.Mouse.position.x and then the same for y.

The problem i am having is first it is hard to select the actor, you need to click on the lower half of the actor and secondly when it is dragged it doesnt follow the cursor exactly, ie the further it is dragged the further the actor moves off the cursor.

What am i missing?

Thanks.

Comments

  • mbeaumanmbeauman Member Posts: 4
    Why not just do when actor receives event, when touch is pressed, constrain x and y to mouse x and y.
    Thanks, i tried this also, I am able to pickup the actor in both options but the problem I am having is that it can only drag from the bottom left quarter of the actor. The actor then moves away from the cursor as it drags??
  • mbeaumanmbeauman Member Posts: 4
    Hmmm. I just tried setting the same actor up in a blank new project and it worked. I must have something in the project i am using and would love to know what the rogue setting could be?
Sign In or Register to comment.