var tag5 = getsp("/uag5.png", 645, 1931); daolu3b.addChild(tag5); var TimeLine = Laya.TimeLine; var timeLine = new TimeLine(); timeLine.addLabel("suoxiao", 0).to(tag5, { scaleX: 0.8, scaleY: 0.8 }, 1000, null, 0).addLabel("fangda", 0).to(tag5, { scaleX: 1, scaleY: 1, }, 1000, null, 0); timeLine.play(0, true);
layaair写动画的方法 用时间轴最方便