Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - ProgVirus

Pages: [1]
DOTween & DOTween Pro / Re: Changing Duration After Start
« on: February 01, 2016, 10:29:15 PM »

I was actually skimming through the documentation on my lunch break at work today, and had come across this -- feel like a total dolt for not seeing it earlier, but I believe you're spot on the mark.

:)  Thanks again!

DOTween & DOTween Pro / Changing Duration After Start
« on: February 01, 2016, 12:03:42 AM »
Just like the title says, I would like to try to change the duration of a tween after it starts.

I'm trying to accomplish a zoom out mechanic at one speed, and using the same tween have it zoom back to the original position at a slower rate.

Code: [Select]
            if (boost > 0.0f)
                isForwardBoosting = true;
            else if (transform.position.z > initialPositionZ)
                isForwardBoosting = false;

I've already tried using ChangeValues, with a hard coded incredibly long new duration for testing, but nothing seems to happen.  I assume this is because the duration cannot be changed after it is started?

Any advice on a way to accomplish this would be great, thanks!

Pages: [1]