Using actions to change property value

Using actions to change property value
0

#1

Hello,

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?


#2

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)


#3

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…