Move To, Move, Interpolate when Touch is pressed

Hi, I have realised that whatever I use - Move To, Move, or Interpolate, when I press touch, each time the object moves down by a different amount - even though I have specified coordinates or place in barriers, it still sometimes overshoots the target position. Is there anyway to fix this? I have tried using the above behaviours and still no success. I am basically tapping on an actor and each time I tap on the actor another actor is supposed to move down by some amount. However, although I have specified the amount it still moves down by a different amount each time?

Comments

  • ImNiklasImNiklas Member Posts: 103
    1. Use the Move To Behaviour.
    2. Make sure you check the "run to completion" box.
    3. Enjoy :)

    If this doesn't work, upload your file so I can understand what's supposed to happen.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Interpolate will never overshoot a position. Are you sure you're putting in the right positions.

  • sulexk@gmail.comsulexk@gmail.com Member, PRO Posts: 21

    Hi, initially I inputted "Self position - 35", and that was not nice, because the position is changing with time and so it would go where I didn't expect it to go. So I just put in the exact position e.g. 700 and so far its working :)
    - Thank you GameSalad Guru! :)

  • ArmellineArmelline Member, PRO Posts: 5,374

    @sulexk@gmail.com said:
    Hi, initially I inputted "Self position - 35", and that was not nice, because the position is changing with time and so it would go where I didn't expect it to go. So I just put in the exact position e.g. 700 and so far its working :)

    You can also assign your starting position to an attribute, and then use that attribute to add or subtract. That doesn't make a huge amount of sense so just look at the screenshot below :disappointed_relieved:

Sign In or Register to comment.