首页 > TweenLite实现在运动中缩放的效果

TweenLite实现在运动中缩放的效果

TweenLite实现在运动中缩放的效果,在运动中改变scale值

TweenLite.to(this.itm_avatar1, 0.2 ,{ x:target1X, y:target1Y,ease:Linear.easeIn,alpha:0.7, onComplete:()=>{

                this.itm_avatar1.scale.x = 0.7 ;
                this.itm_avatar1.scale.y = 0.7 ;
                this.con_avatar0.addChild( this.itm_avatar1 ) ;
                this.itm_avatar1.position = new PIXI.Point( 0, 0 ) ;
            } } )

现在得效果是在0.2秒之后直接缩小,而不是在运动过程中缩小


使用TweenMax,然后.号链式写法试试,tweenlite功能有少

【热门文章】
【热门文章】