Change the speed of object that is been transition.to()

Hi,

How can I change the speed of object that is been transition.to() in the middle of the movement (without cancel the transition and create new one).

More detail: I have few objects of the screen that moved on the screen. When the user clicks a specific button all the objects on the screen need to double the speed. I was thinking on using the _duration that stored in the transition table but it gives strange result and also I read that this is not recommended as it is internal variable use by Corona and it is advised not to use it (not sure if it is true)

Thnaks

Hi Yuval,

Transitions are considered as one point/state to another, so you can’t change their parameters in the middle of them occurring. So, you’ll need to cancel the transition in progress and start a new one. I also do not recommend adjusting the internal variables for the transition library, because the results will be unpredictable.

Best regards,

Brent

Hi Yuval,

Transitions are considered as one point/state to another, so you can’t change their parameters in the middle of them occurring. So, you’ll need to cancel the transition in progress and start a new one. I also do not recommend adjusting the internal variables for the transition library, because the results will be unpredictable.

Best regards,

Brent