Dragging Help?

FrozenDingoFrozenDingo Member Posts: 17
edited July 2012 in Working with GS (Mac)
Hi!

I would like to create an actor that can be moved up and down on the Y axis by dragging up and down anywhere on the screen.

I did manage to create this. The problem is that I would like the actor to move more slowly and have drag when changing direction instead of following the touch exactly.

What is the best way to achieve this?

Thanks, Dave

Best Answer

  • J_PANJ_PAN Posts: 140
    Accepted Answer
    you should check out tshirtbooths multimenu tutorial, but just changing X to Y

Answers

  • AcceleratedGamesAcceleratedGames Member Posts: 201
    Use the "Move To" behavior and tell the actor to move to game.MousePosition.X and game.MousePosition.Y and change the speed to whatever you like.
  • DeadlySeriousMediaDeadlySeriousMedia ArizonaMember Posts: 838
    Only I believe you want to only do this with game.MousePosition.Y so the actor doesn't move along the X axis.
  • FrozenDingoFrozenDingo Member Posts: 17
    Thanks, but this is not quite what I would like. The actor stops when it gets to the touch.

    Is it possible for the user to drag their finger up and down on the screen and the actor to follow but skid whilst following the change of direction?
  • FrozenDingoFrozenDingo Member Posts: 17
    @pan_joshua Using velocity was what I was after! Thanks man!

    Now just need to work out how to offset using this method, so it doesn't jump to the mouse position...?
Sign In or Register to comment.