首页 > 其他 > 详细

layaair写动画的方法 用时间轴最方便

时间:2020-04-28 19:31:12      阅读:157      评论:0      收藏:0      [点我收藏+]
    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写动画的方法 用时间轴最方便 

layaair写动画的方法 用时间轴最方便

原文:https://www.cnblogs.com/newmiracle/p/12796288.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!