Search Unity

Follow a path and be able to swipe right and left in it

Discussion in 'Scripting' started by unwshd_elend, Feb 5, 2020.

  1. unwshd_elend

    unwshd_elend

    Joined:
    Mar 21, 2019
    Posts:
    23
    hello guys , I have to find a way to move the character automatically in a curved path (like Runner games)
    but also be able to swipe right and left. I have already tried using navmesh and setting destination step by step and also tried working with path generating and using waypoints. currenly my character can follow a curved path smoothly but I cannot find a way to combine its movement with swiping to result in an smooth and nice move.
    overall what i want is something like this :

    **Link**: [AquaPark.io](
    )
     
  2. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,748
    Move parent object along the generated path, swipe child left and right and other sides as you wish.
     
  3. unwshd_elend

    unwshd_elend

    Joined:
    Mar 21, 2019
    Posts:
    23
    man ! thanks !