Using actions to change property value

Using actions to change property value



I am trying to use cc.[action] to manipulate speed property.
Lets say that my current speed is 0 and I want to change it to 500 in 3 seconds with easing.

How can I achive that?


you can’t tween a float in cocos, i was looking the same as the leantween and Dotween library have.

i made some research and in other cocos versions existed cc.ActionTween and something to tween floats (but i don’t remember the name)


Very strange. I can see that the feature works inside the animation panel but there has to be a way to manage this by coding.

There is no cc.ActionTween in cocos creator however…