-
Creator 版本: 2.3.3
-
目标平台: WEB
如標題 不知道如何停止特定的緩動 官方沒寫大家都怎麼試出來的?
runblinktext(num){
var parent= this.node.getChildByName("parent");
cc.tween(parent.children[num])
.repeatForever(
cc.tween()
.to(0.5, { opacity: 0 })
.to(0.5, { opacity: 255 })
)
.start()
cc.Tween.tag = 1313
},
stopblinktext(){
cc.Tween.stopAllByTarget(1313);
var parent= this.node.getChildByName("parent");
for (let index = 0; index < parent.children.length; index++) {
const element = rate.children[index];
element.opacity = 255;
}
},