看文档说明,例子是这样的,但是有点不明白。
let t = cc.tween;
t(this.node)
.parallel(
t().to(1, { scale: 2 }),
t().to(2, { position: cc.v2(100, 100) })
)
.call(() => {
console.log(‘All tweens finished.’)
})
.start()
这个是一个 node 吧?
假如两个node 的 node1 和 node2 ,并行缓动,应该怎么写呢?
是这样吗?
let t = cc.tween;
t(this.node)
.parallel(
t(node1 ).to(1, { scale: 2 }),
t(node2 ).to(2, { position: cc.v2(100, 100) })
)
.call(() => {
console.log(‘All tweens finished.’)
})
.start()
还是不支持呢?