hi
Is it possible to set speed instead of duration in tween ?
cc.tween(someNode)
.to("here set speed not duration " , {position : cc.vec3.ZERO})
.start()
like above code set speed instead of duration
hi
Is it possible to set speed instead of duration in tween ?
cc.tween(someNode)
.to("here set speed not duration " , {position : cc.vec3.ZERO})
.start()
like above code set speed instead of duration
you can use this if you want use input speed
cc.tween(someNode)
.to(distance/speed, {position : cc.vec3.ZERO})
.start()
with speed is pixels/second