https://layaair.ldc.layabox.com/demo/?category=2d&group=Tween&name=TimeLine
function createTimerLine()
{
timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX:0.5, scaleY:0.5},2000,null,0)
.addLabel("turnDown",0).to(target,{x:450, y:300, scaleX:0.2, scaleY:1, alpha:1},2000,null,0)
.addLabel("turnLeft",0).to(target,{x:100, y:300, scaleX:1, scaleY:0.2, alpha:0.1},2000,null,0)
.addLabel("turnUp",0).to(target,{x:100, y:100, scaleX:1, scaleY:1, alpha:1},2000,null,0);
timeLine.play(0,true);
timeLine.on(Event.COMPLETE,this,this.onComplete);
timeLine.on(Event.LABEL, this, this.onLabel);
}
function onComplete()
{
console.log("timeLine complete!!!!");
}
function onLabel(label)
{
console.log("LabelName:" + label);
}
少年 没仔细看官方的案例吧 这个Label时间就是每一小节动画都会 触发 同时会告诉你当前是那一节
注:我不知道LZ是不是这个意思哈哈