Hiya,
how can I tween a node from one place to a different?
only a small easy transfer animation?
Right here one instance, based mostly in a code that I made for one sport:
let ballTween = new Tween(sprite.node)
.set({place: x, 0, 0)})
.name(() => this.changeColor())
.to(time, {place: new Vec3(destX, 0, 0)});
My Cocos Creator is 3.x, however I imagine it really works in 2.4, and perhaps 2.3
you may discuss with doc: Tween System · Cocos Creator
This subject was mechanically closed 24 hours after the final reply. New replies are not allowed.