当前位置:网站首页>Using eating in cocos Creator

Using eating in cocos Creator

2022-07-07 15:39:00 Vegetable chicken on the road

Mainly used for animation , Example :

 cc.tween(this.stretch)
            .to(0.1,{}).call(()=>{this.arrow.scale = scale})
            .to(0.5, { x: x },{easing:"sineOut"})
            .call(() => {
                this.inOrOut = !this.inOrOut;
            })
            .start();

For the specific effect of official documents, please refer to the address :http://docs.cocos.com/creator/api/zh/classes/Easing.html#elasticout
Replace "sineOut" that will do

原网站

版权声明
本文为[Vegetable chicken on the road]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130612339523.html