So I have recently been learning cc.tween in Cocos Creator, and they have been easy to use, and work great overall. One issue I’ve ran into is I can’t seem to find a way to adjust them on the fly in the editor. For example, say I have a tween where one line of code is, .to(5, {rotation: 1080}, {easing: ‘quadOut’}), and it works as expected. The object rotates three times over five seconds. What I can’t do is something like this, .to(timer, {spins * 360}, {easing: ‘quadOut’}), where you can control the time and the amount of spins in the editor as much as you need, instead of going in and changing the code each time.
I am going through some documentation, and it’s possible I’ve missed it, so any help would be greatly appreciated.