*

abe

  • ***
  • 11
    • View Profile
Move object towards the path to position.
« on: July 29, 2015, 06:17:45 PM »
Hello. How to do next steps using DoTweenPro
1)Add gameobject .
2)Add DoTweenPath component to it.
3)Start the tween.
4)Stop the tween on event (click for example).
5)Move gameObject to Position on the path.
6)Move gameObject forward\backward x points towards the path.
7)Start the tween again.

I have no idea how to do item 5 and 6. Thank You for help.

*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: Move object towards the path to position.
« Reply #1 on: August 04, 2015, 06:02:26 PM »
Hi, and apologies for the late reply,


You can move to a waypoint on the path by using GotoWaypoint (you'll need to get a reference to the DOTweenPath's Tweener with myDOTweenPath.GetTween()).


Cheers,
Daniele

*

abe

  • ***
  • 11
    • View Profile
Re: Move object towards the path to position.
« Reply #2 on: August 05, 2015, 01:23:24 PM »
Hello. Thank you for the answer. But here is no way to move forward or backward for x units?

*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: Move object towards the path to position.
« Reply #3 on: August 05, 2015, 01:52:56 PM »
Hello,


No way to move by units, but you could use Goto to move by time.