猿问

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秒之后直接缩小,而不是在运动过程中缩小


MMTTMM
浏览 1069回答 1
1回答
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答