Demigiant Forum

Unity Assets => DOTween & DOTween Pro => Topic started by: cvezina on September 25, 2015, 03:29:18 PM

Title: Flip and loop problem
Post by: cvezina on September 25, 2015, 03:29:18 PM
I have setup 2 tweens that are using a path. When a tween hits another one, I simply flip the tween so they are going in opposite directions. So far so good. The problem is that the tweens are set to loop indefinitely. However, when a flip happen, then the loop stops as soon as it reach the first waypoint of the path.

Is there something can be done to let the loop running after a flip?

Thanks
Title: Re: Flip and loop problem
Post by: Daniele on September 25, 2015, 06:30:17 PM
Hi!

Once a tween is fully rewinded there is no way to make it play backwards more. But! You could use a trick. You could create a looping tween, use Goto to send it at a position where, like 15000 loops have elapsed, and play it. Then, when you flip it, it would still need to play 15000 backwards loops before stopping.

Cheers,
Daniele